Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Count number of player in a level

Archive: 5 posts


I want to know if it is possible to count the number of players that are playing in a level, so I can use this value later2013-12-15 23:47:00

Author:
lucas_turci
Posts: 6


Moved to [LBP2] Help2013-12-15 23:50:00

Author:
Lady_Luck__777
Posts: 3458


I'd use 3 player sensors. Set the required number of players to 2, 3, and 4. Make sure it's set to detect unspawned players too and has an infinite detection range. You can use a selector and connect all the player sensors to it. If there's 1 player, the first slot is active. If 2 players, the 2nd....etc.2013-12-16 12:59:00

Author:
AmazingKittyCat
Posts: 204


Hi Lucas.
Unfortunately, there is no way to detect specific players, however, you can detect a set number of players with a PLAYER SENSOR.

If you want for example to have puzzles that require 1, 2, 3 or 4 players activate it, you can just place an invisible piece of hologram. On this place a microchip with 4 player sensors. Tweak each one to make number of players 1 or 1, 2 on 2 and so on.
Now you just need to wire each sensor to the logic for that number of players.
(for example:- if a door requires 3 players to open, just wire the player sensor for 3 players to the door).
There are additions to this and other ways, but essentially thats how to detect a set number of players.

You could use sackbots with a set tag on them for each player if you need to track an actual player.
Have each player who enters spawn into a sackbot setup with different tags on them. Then later as you require a certain sackbot to do a certain
operation have it sense his particular tag if its specific to the one, or if any bot can do it, have all the tags sensors wire to an OR gate, or,
if a set number of bots are needed to activate a gate at the same time, wire the tag sensors to an AND gate.
I hope this helps
2013-12-16 13:11:00

Author:
Sean88
Posts: 662


Thank you very much! That resolves my problem...2013-12-16 23:31:00

Author:
lucas_turci
Posts: 6


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.