Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: ADD ACTION  (Read 793 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