Jump to content
Sign in to follow this  
rjtwins

Getvectorup from a to b

Recommended Posts

Hello all.

I'm trying to make an object (floating in the air) to point at somthing thats on the ground.

The problem is I can only get it to point in the compas direction with the bis fuction BIS_fnc_DirTo.

And not to get it pointing downwards toward it.

Just so you know I cannot use the dowatch or dotarget or lookat commands because I wan't the object to point at it and not just a turred or unit to look at it.

Help...

Share this post


Link to post
Share on other sites

Why not just use the little training arrows and setPos one above the object?

Share this post


Link to post
Share on other sites

BIS_fnc_vectorFromXtoY

Share this post


Link to post
Share on other sites

Gia could you explain how to use this command, I looket it up via func help ingame but got a bit confused how to use it and what it returns.

EDIT :

could it be somthing like this ??

the positions are obtained via GetPosASL.

   _finalHeading = [_AGMplatformpos,_Playerpos] call BIS_fnc_vectorFromXToY;
   _AGMplatform setVectorUp [_finalHeading];

Edited by rjtwins

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  

×