Home   Help Search Login Register  

Author Topic: ADD ACTION  (Read 519 times)

0 Members and 1 Guest are viewing this topic.

kymandro

  • Guest
ADD ACTION
« 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 ???

Silencer

  • Guest
Re:ADD ACTION
« Reply #1 on: 06 Feb 2005, 19:57:59 »
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

Offline 456820

  • Contributing Member
  • **
Re:ADD ACTION
« Reply #2 on: 07 Feb 2005, 20:54:20 »
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