|
Post by lancer on Oct 16, 2010 11:31:10 GMT
Hey
Okay, i got a teleporting room. You go inside, press a button and woosh, you're teleported. HOWEVER, if 2 players go inside and press the button they WILL be stuck. So i want to only allow 1 person in the teleporter at once. How can i do that?
Another bug is, when the player has gone into the teleporter, and teleported. When he uses the next teleporter to go back, its a 50% chance if it works or not. If it doesn't work, he will NEVER be able to get out in that round. Which he should. He should ALWAYS be able to use it.
However, if another person then goes inside, and the first player tries to go back, he can, but the second cant!
The teleporters are basic, just activates the trigger block to teleport to the destination.
I could really use some help on this !
|
|
|
Post by Zeph on Oct 16, 2010 11:38:21 GMT
|
|
|
Post by lancer on Oct 16, 2010 12:29:11 GMT
I want to use the game_zone_player. But i think i'm doing it wrong. How can i compare it's count to number of players, and if it equals 1, then trigger something?
I tried using a logic_compare, but that didn't have enough values for me to set.
game_zone_player = playercount
logic_compare Value: 1 onEqualTo, playercount, CountPlayersInZone.
|
|
|
Post by Zeph on Oct 16, 2010 13:12:11 GMT
Try this test file: www.mediafire.com/?by1tmchoggk0a46See how its done. The group on the left is 6 different teleporters with 6 destinations, and each time someone gets teleported, it disables all and then randomly enables another. The one on the right (should) only fire on button press if there is one person in the zone.
|
|
|
Post by lancer on Oct 16, 2010 13:39:10 GMT
So thats how its done. You didn't use the game_zone tho.. but thanks for the example !
|
|
|
Post by Zeph on Oct 19, 2010 10:11:13 GMT
This is just a different method using more entities, IE a logic_math and logic_compare to do the task for you.
|
|