OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Killzone 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 :-*
-
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?
-
Thanks I will give it a shot and let you know
-
There's a section "Scripting Topics" in the comref which you will find useful.