OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Surdus Priest on 10 Apr 2008, 23:46:01

Title: game logic firing at target
Post by: Surdus Priest on 10 Apr 2008, 23:46:01
how do you make a game logic fire an AA missile (or any ammo) at a target?

ps. please dont direct me to mando missile because im looking for something a lot more basic.
Title: Re: game logic firing at target
Post by: Rommel92 on 11 Apr 2008, 03:24:03
I haven't go the code yet, but it would be simple camCreate, which would then be setVelocity'd and with some trig' it would direct itself to towards the target. I'll be back in an hour or so, and if Mando hasn't whipped up something special, I'll see what I can get ya.
Title: Re: game logic firing at target
Post by: h- on 11 Apr 2008, 07:56:57
Just a side note, camCreate won't work in ArmA (you can only create cameras with it) ;)


And the quoting again....  ::)
Title: Re: game logic firing at target
Post by: Mandoble on 11 Apr 2008, 08:30:48
You might try the doTarget and fire commands as long as the GL is inside a vehicle with missiles. Not sure if the GL will be able to lock on anything.
Title: Re: game logic firing at target
Post by: Rommel92 on 11 Apr 2008, 08:42:00
The game logic can actually "moveIn" vehicles?  :o
Title: Re: game logic firing at target
Post by: Mandoble on 11 Apr 2008, 09:22:35
Yes.
Title: Re: game logic firing at target
Post by: Captain on 11 Apr 2008, 13:01:36
Hell yes, nothing like forcing some empty seats in a vehicle by loading them with GL's. I do it mostly for vehicles where the first cargo seat is in the front, I like to ride with my group. :)
Title: Re: game logic firing at target
Post by: Surdus Priest on 15 Apr 2008, 17:01:20
this doesnt really answer my question, sorry