OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DaRkmAn on 30 Sep 2002, 21:59:30
-
How can i make a script where when i radio bravo they start grenading the city with there m203's?
-
Well, create a group of grenadiers first of all ( ::) ;D ) and then
Name the group :
Morons = units Group This (put it the INIT field of some d00d)
Then just write a lil' novellette with NOTEPAD, som'n like this :o
-------------------------------
#Novel
? EaseUp: exit
"_x fire [""m203muzzle"", ""Grenadelauncher"", ""grenadeLauncher""]" ForEach Morons
~5
Goto "Novel"
-------------------------------
Save the file as "Novel.sqs" and put it in yer "NameOfMission" -folder :-*
Then the triggers :
1. starting the action = radio A.
In the "On Activ." field put :
[YerName] exec "Novel.sqs"
And to end it, use the BRAVO trigger with these words of wizzydummy :
EaseUp = True
That would end the looped scroll 8)
Now, ya MAY need to add some reload spells, dunno actually?!
If so, do it like this (in the script, after the ~5 delay) :
"_x action [""Reload"", ""m203muzzle"", ""Grenadelauncher""]" foreach Morons
( if I'm not all wrong here :P ::) ) :)