Hi, i'm simply trying to run different scripts on different comps during a MP game, and I have succeded. However, the code below is running off a server machine as I log-in as a client (when MY unit is named either "play1" or "play2" and the other unit is made AI). When I log-into the server as the ONLY client I would hope that only 1 action is added to my avatar's action list, but 2 are added! How is this ? How can my comp think that both "play1" AND "play2" units are local ? Why would it think "play2" is a player unit ?
What are the rules of localism ? Why does the code work when the people logged into the server is >1 ?
_unit = _this select 0
? local server: exit
? local _unit && play1 == player && not local server: [0,1,0,0,0,0,1,1,0,0] exec "bf\addaction.sqs"; exit
? local _unit && play2 == player && not local server: [0,1,0,0,0,0,1,1,0,0] exec "bf\addaction.sqs"; exit
exit