OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kymandro on 06 Feb 2005, 19:38:44
-
Is there any way to make a trigger taht when you enter its radius the play is added some actions u know like the Player addaction ...bah ..bah balh thing and when he leaves the radius the actions are taken away?
Vilen Dank ???
-
Make a trigger:
OnActivation: KillThePlayer = Player AddAction ["Kill me!","Kill.sqs"]
OnDeactivation: Player RemoveAction KillThePlayer
Save your mission.
Now open notepad, save it as Kill.sqs (make sure it is Kill.sqs not Kill.sqs.txt)
And put in it: Player SetDammage 1
Press ctrl+s and go back to your mission.
Walk into the trigger, and see what happens!
Good luck
-
another way is create a trigger and group it to player set the trigger to player present. and then
condition - this
on activation - (theres two ways use a script or write it in the box) [] exec "script.sqs" or player addaction "what ever the action is"
i think thats what you mean but im not to sure how to make it get rid off the action or mabye the trigger to repeatedly might work im not sure