OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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.
-
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.
-
Just a side note, camCreate won't work in ArmA (you can only create cameras with it) ;)
And the quoting again.... ::)
-
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.
-
The game logic can actually "moveIn" vehicles? :o
-
Yes.
-
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. :)
-
this doesnt really answer my question, sorry