OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Oblivion on 16 Jul 2004, 04:40:37

Title: addAction question
Post 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?
Title: Re:addAction question
Post by: CrashnBurn on 16 Jul 2004, 05:58:41
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.
Title: Re:addAction question
Post by: Oblivion on 16 Jul 2004, 06:12:31
Thx a bunch!  :)