OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mike on 11 Sep 2002, 22:04:20
-
When I wright a script and add something with the name variable like: (f1 setflame true) is doesnt work...
How do I incorporate commands like that into the script..
I have a cutscene, and I want the fire to start before the shot and go out after..
and I tried to make a simple script to launch 6 scuds...
_scud1 action ["scud launch"]
~1
_scud2 action ["scud launch"]
~1
_scud3 action ["scud launch"]
~1
_scud4 action ["scud launch"]
~1
_scud5 action ["scud launch"]
~1
_scud6 action ["scud launch"]
~5
_scud1 action ["scud start"]
~1.5
_scud2 action ["scud start"]
~1.5
_scud3 action ["scud start"]
~1.5
_scud4 action ["scud start"]
~1.5
_scud5 action ["scud start"]
~1.5
_scud6 action ["scud start"]
exit
But it doesnt work?.. Need a fix.. :)
-
Putting _'s infront of variables make them local variables. This means that they have no influence on the game outside of the script. Remove the _'s and you script will work.
-
Ok, it worked.. ;D