Rambo-16AAB 0 Posted January 4, 2007 Im trying to call in units via radio in Multiplayer. e.g Radio Alpha is set on a trigger to gall an Air unit in to support your team. I have got ;- a1 domove setpos r1 in the activation of the trigger, but this only calls the air unit to the section leader (r1). How do i alter that so the Air unit will nove to any player who calls it ? thanks. Share this post Link to post Share on other sites
Cloughy 0 Posted January 5, 2007 Replace the r1 with player. The player pos is different on each client machine. You may need to use the GlobalVariable command so all machines know where you want it to go, but i think the client which calls the command will tell the server, and the server will then know the destination pos. Hope it helps Cheers GC. Share this post Link to post Share on other sites
Rambo-16AAB 0 Posted January 5, 2007 reat, I'll give thay a try tonight. thanks. Share this post Link to post Share on other sites
crashdome 3 Posted January 5, 2007 FYI: When a trigger is called, it is executed on all clients. So if you have 3 players on a server and someone triggers the radio, what you get is three commands executed: Player 1: a1 doMove (Player1) Player 2: a1 doMove (Player2) Player 3: a1 doMove (Player3) All at the same time. Unless something has changed in ArmA that I don't know about. Share this post Link to post Share on other sites
Rambo-16AAB 0 Posted January 5, 2007 Ok, so using " player" will only cause the trigger to try and direct the unit to every live players position at once ? so say 16 live players, 1 requests the unit and the unit receives 16 different locations ? Any other idea on how to make this work just for the player that calls for it ? Share this post Link to post Share on other sites
crashdome 3 Posted January 8, 2007 I'll repeat. Once someone triggers a radio trigger, it is executed on all clients. Because "player" means something different on all clients, you'll not only get multiple issues of the "doMove" command, it will be to different locations. My guess is the last client to execute the command will be the final destination. You could make it more individual by using actions or a dialog. Share this post Link to post Share on other sites
Rambo-16AAB 0 Posted January 8, 2007 You mean replace the radio activation by some sort of Action command ? or having the trigger execute an action after a player uses it? Share this post Link to post Share on other sites
whisper 0 Posted January 8, 2007 I'm not sure that you can "doMove" a unit that is not local to your computer. Ie, if it is a unit on a squad commanded by AI, then the doMove would only work on the server. So the group will move to the host position, and it won't work on a dedicated server (where variable "player" is not set). To be verified, though. I know you cannot setPos a non local unit, but I never tested for doMove Share this post Link to post Share on other sites
Rambo-16AAB 0 Posted January 8, 2007 Ive tested the Domove setpos combination in Multiplayer but only with 1 named unit moving to another named unit on radio command, that does work on servers. its fine when you only have 1 unit/commander who will be using the radio, im trying to expand on that so multiple units can use the radio and unit is called to the apropriate position. Share this post Link to post Share on other sites