Home   Help Search Login Register  

Author Topic: problems with addactions  (Read 1136 times)

0 Members and 1 Guest are viewing this topic.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
problems with addactions
« 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...

Code: [Select]
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
Proud Member of the Volunteer Commando Battalion

Offline Mud_Spike

  • Contributing Member
  • **
Re:problems with addactions
« Reply #1 on: 02 Aug 2004, 18:30:15 »
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.