Home   Help Search Login Register  

Author Topic: game logic firing at target  (Read 1719 times)

0 Members and 1 Guest are viewing this topic.

Offline Surdus Priest

  • Members
  • *
  • Only I can Forgive You!
game logic firing at target
« 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.
Campaigns are hard, I'll stick with scripting for now!

Offline Rommel92

  • Members
  • *
Re: game logic firing at target
« Reply #1 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.
« Last Edit: 11 Apr 2008, 07:55:44 by h- »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: game logic firing at target
« Reply #2 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....  ::)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: game logic firing at target
« Reply #3 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.

Offline Rommel92

  • Members
  • *
Re: game logic firing at target
« Reply #4 on: 11 Apr 2008, 08:42:00 »
The game logic can actually "moveIn" vehicles?  :o

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: game logic firing at target
« Reply #5 on: 11 Apr 2008, 09:22:35 »
Yes.

Offline Captain

  • Members
  • *
Re: game logic firing at target
« Reply #6 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. :)

Offline Surdus Priest

  • Members
  • *
  • Only I can Forgive You!
Re: game logic firing at target
« Reply #7 on: 15 Apr 2008, 17:01:20 »
this doesnt really answer my question, sorry
Campaigns are hard, I'll stick with scripting for now!