OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: anderson on 18 Jul 2003, 20:04:13
-
I am making some multiplayer missions and cant seem to find something. Is it possible to know who is activating a trigger. Not just the side but define him as "Activator1" or something?
-
Let's say your trigger has been configured that way:
anybody/present/once
condition: this
Now this trigger will be activated by whoever enters it
In the onActivation field of the trigger you can use:
Activator1 = thislist select 0
to specify Activator1 as the one who has entered the
trigger first.
There's only one issue you need to think about when it
comes to multiplayer:
Activator1 will only be the player who is local on the machine,
where the trigger was activated.
e.g: player 1 enters the trigger and Activator1 = player 1
Then player 2 enters the trigger and Activator1 = player 2
on player 2's machine.
Therefore you could setup the trigger this way:
anybody/present/once
condition: this AND !activated
onActivation: Activator1 = this select 0; activated = true; publicvariable "activated"
hope this helps
~S~ CD