Taurus 20 Posted May 20, 2007 Multiplayer: If you are tired, scroll down to see the sum up, if you want teh whole background, continue to read below. Scenario: player1 enters a trigger, he will be given some hints of how he will do stuff. This is made by hint "ablablabla" player2 is sweating whilst fighting the enemy PONG!! he gets player1s hint displayed... trigger condtion local player yep its local to BOTH players... so player2 get the hint too. and player==player yes he is himself this time too. And no, I can't have the trigger "grouped" with player1 as player2 will or should later do the same thing. Same things go for units/vehicles. We all know that units spawned on the server wont show up if they aren't spawned on all clients. "someVehicle" createVehicle getPos player; lol? which player will get the vehicle near to him? Same goes for radio. I want the radio to be used for both sides. when radio Alpha for example is used a heli will come to rescue him, but again, who will it come to? As far as I've noticed the player who joins the session first become "master player"? I guess same goes for createDisplay too... Instead of using radio, addAction can be used. But, those actions are carried along with the player, and can be used by others too, however this can be checked if unit with action != caller. and those actions are kind of "in teh way" when playing too. So how to add them back? Nope, radio is out of the question. Stepping into a trigger, nope, see above. The only way as I see it is to use "fired" and have all players/playable units carrying around a laser target whatever weapon... SUM UP: How to determine a unique player? thanks and Share this post Link to post Share on other sites
Platoon_Patton 0 Posted May 20, 2007 Try a trigger with these conditions: Local player and player in thislist Also player == player seems to have not much use,not sure what U mean with that? vehicle player == player is possible to find out if a player is in a vehicle or not. Share this post Link to post Share on other sites
Taurus 20 Posted May 20, 2007 Try a trigger with these conditions:Local player and player in thislist Also player == player seems to have not much use,not sure what U mean with that? vehicle player == player is possible to find out if a player is in a vehicle or not. Local player and player in thislist I can't do that because some times there will be two players in the same trigger. Making the hint or whatever pop-up for both users. local player is local to both players in that trigger <- angry with the trigger condition. and player==player was just a dumb try of sarcasm. Please help Share this post Link to post Share on other sites
Platoon_Patton 0 Posted May 20, 2007 No need to get angry at triggerconditions But I still dont understand 100% what ur up to... So few more guesses: -U can give your special player a name,like SpecialGit TrigCond:This and Specialgit in thislist start ur script with: ?(player != Specialgit):exit Share this post Link to post Share on other sites
Taurus 20 Posted May 20, 2007 No need to get angry at triggerconditions But I still dont understand 100% what ur up to... So few more guesses: -U can give your special player a name,like SpecialGit TrigCond:This and Specialgit in thislist start ur script with: ?(player != Specialgit):exit Hi, yes I'm sorry, I was utterly tired when I wrote my first post. I want to have a "side radio" for calling reinforcements and etc to their position. ALL players should be able to do this. But, then I need to determine who used the radio, or entered the trigger. Yes I could name the players P1, P2, P3 and etc. But then again? How would I determine who did use the radio. ?local player AND P1 Would return true even if it was P2 who used the radio, or entered a trigger. _x in thisList wont work either because at times tehre might be two players in the same trigger, but its only P1 for example who does things. Share this post Link to post Share on other sites
Platoon_Patton 0 Posted May 20, 2007 Supposing everybody can activate the trigger,but only once,U can do it like that: Let your trigger fire once,grab the man who did it with: hint format ["%1",(thislist select 0)] or hint format ["%1",name (thislist select 0)] or pass him to a script: on Act:[thislist select 0]exec "myscript.sqs" Share this post Link to post Share on other sites