OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bored_onion on 23 Aug 2004, 16:45:27
-
i want to make a script that will make a shilka continually fire into the air. i've got as far as making it fire:
_shilka = _this select 0
#fire1
?(!alive _shilka): goto "end"
?(_shilka ammo "ZsuCannon" <= 300): _shilka addmagazine "ZsuCannon"
_shilka fire ["ZsuCannon","ZsuCannon"]
~0.0005
goto "fire1"
#end
exit
but i can't get it to fire into the sky
ive tried making it "dotarget" a game logic at height 500 and also making it "dotarget" and then "dofire" the game logic but that doesn't work
anyone have any ideas?
help greatly appreciated
-
Use the invisible target addon - AI won't target GLs.
Search the forum for a link.
-
In A01: Revenge, the BIS SP mission, then they have some grenadiers target H (invisible)s and then doFire ["**","**"] at them. You could try that?
-
i did try this but i had difficulty getting it to work and im trying to keep this mission addon
i dont suppose there is a way to do it without an addon?
-
tyger posted about 1 sec before me so i didnt get to try it before i posted last
but anyway i tried it but couldnt get it to work....
any other ideas?
-
I found this thread the other day, which might be what you want:
http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=16660;start=0 (http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=16660;start=0)
-
thanks everyone, i managed to get simflak to do everything i wanted and it looks real nice
thanks to grendel if he ever reads this :P
btw. i thoroughly recommend the script to anyone - its great fun, even if you don't want a specific effect like i did