Jump to content
Sign in to follow this  
alleycat

How to get the orientation of the UAV gunner?

Recommended Posts

Trying to get missiles to spawn from the UAV and fly towards the direction the gunner camera is aiming at.

		_missile = "M_Air_AA" createVehicle getPos drone1;
	_missile setPos [getPos drone1 select 0, getPos drone1 select 1,(getPos drone1 select 2)-1];


	_missile setVectorDirAndUp [VectorDir (gunner drone1), vectorUp (gunner drone1)];

Getting it to fly towards the drones direction works, but getting it to follow the gunner's view does not work. Could it be that the UAV does not have a gunner?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×