Home   Help Search Login Register  

Author Topic: How to follow a rocket without spawning one  (Read 491 times)

0 Members and 1 Guest are viewing this topic.

F1yer

  • Guest
How to follow a rocket without spawning one
« on: 15 Apr 2003, 18:31:01 »
Hi,

I made a script that follows a Jet (F16 in this case) moving around it. All works fine but now the hard part, the F16 will fire a rocket on a static target. At that point, the camera should switch from the F16 to the fired rocked and stay with it untill it is destoyed, than the camera has to get back to the F16 again. I know it is posible to see if a rocket has fired (addEventHandler) but can you track the fired rocket? Offcourse I could just spawn a rocket, that way I can follow it......But I hope there is a better way...?! pls help! :) :P

Knut Erik

  • Guest
Re:How to follow a rocket without spawning one
« Reply #1 on: 15 Apr 2003, 22:49:10 »
you can use the "NearestObject" command or something.

_rocket = nearestobject F-16

camsettarget _rocket

Something like that...  ::)