OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Oblivion on 16 Jul 2004, 04:40:37
-
Alright here is my question...
Right now I have an object with a Trigger on it.
When West becomes present, an addaction comman becomes available to turn the lights off.
But how do I make it so when I leave the trigger radius the addaction dissapears?
I know the player removeaction newaction1; part,
But how do I let the Trigger know the unit is not present?
-
Make the trigger repeating and in the-
activation box put:
newaction1 = player addaction ["newaction","newaction.sqs"]
deactivation box put:
player removeaction newaction1
This trigger should be grouped to the player.
-
Thx a bunch! :)