OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Messiah on 02 Aug 2004, 17:51:34
-
ok, so i've got a checkpoint situation, and i have a car with an addaction set on it, for one of the players to select 'check documents'.
works fine in editor and SP, the problem is that in MP everyone gets the option (thats fine) but even when some1 selects it, it doesnt go away from everyone else, and the text only appears for the guy who selected it...
the car with the addaction is waiting at a waypoint waiting for a condition to be met in the addaction script (following), but that never works in MP, even if some selects the check documents...
civcar2 removeaction check2
titletext ["Your papers, please.", "plain down"]
~5
titletext ["Everything seems to be in order. Have a nice day", "plain down"]
~4
check2complete = true
exit
-
This would leave one to believe the script is only executed on client side...
Guess you should use publicVariable to propagate a variable which will make a trigger fire on all computers.
I.e.;
someaction.sqs:
actionized = true
publicVariable "actionized"
Then a trigger with Condition: 'actionized == true' and OnActivation: '[] exec "madeItThroughCheckPointTwo.sqs"', which does pretty much what your script does today.
Might do the trick.