OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bored_onion on 23 Aug 2004, 16:45:27

Title: making a shilka fire INTO THE SKY
Post 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:

Code: [Select]
_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
Title: Re:making a shilka fire INTO THE SKY
Post by: macguba on 23 Aug 2004, 16:46:07
Use the invisible target addon - AI won't target GLs.

Search the forum for a link.
Title: Re:making a shilka fire INTO THE SKY
Post by: Tyger on 23 Aug 2004, 17:22:10
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?
Title: Re:making a shilka fire INTO THE SKY
Post by: bored_onion on 23 Aug 2004, 17:22:32
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?
Title: Re:making a shilka fire INTO THE SKY
Post by: bored_onion on 23 Aug 2004, 17:25:17
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?
Title: Re:making a shilka fire INTO THE SKY
Post by: Mud_Spike on 23 Aug 2004, 21:51:46
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)
Title: Re:making a shilka fire INTO THE SKY
Post by: bored_onion on 24 Aug 2004, 12:16:38
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