Home   Help Search Login Register  

Author Topic: from trigger to script  (Read 547 times)

0 Members and 3 Guests are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
from trigger to script
« on: 14 May 2004, 22:54:28 »
Hi  ;D


in one of my triggers I use the following:

condition: getdammage object 1384 >.9

activation: fire = "cathousefire1" camCreate  [getPos object 1384 select 0, getpos object 1384

select 1, 0]; fire inflame true

I was wondering how I would import this to a script. what are the script syntax for "condition" and "activation"

Thanks in advance.

I want to make a script where the above is activated for every building that is destroyed in a town

Thanks for the help :-*
"Everyone dies so deal with it and move on"

                                                      ME

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:from trigger to script
« Reply #1 on: 14 May 2004, 23:58:42 »
execute with
[object x] exec "myscript.sqs"
where x marks the number of the object

in myscript.sqs
_unit = _this select 0
#start
?getdammage _unit > 0.9: goto "burn"
~5
goto "start"

#burn
fire = "cathousefire1" camCreate  [getPos _unit select 0, getpos _unit select 1, 0]; fire inflame true
exit

How would that work?
Not all is lost.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:from trigger to script
« Reply #2 on: 15 May 2004, 01:21:03 »
Thanks I will give it a shot and let you know
"Everyone dies so deal with it and move on"

                                                      ME

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:from trigger to script
« Reply #3 on: 16 May 2004, 13:38:58 »
There's a section "Scripting Topics" in the comref which you will find useful.
Plenty of reviewed ArmA missions for you to play