Jump to content
Sign in to follow this  
iceman77

Make an vehicle face another object

Recommended Posts

A marker named setM will be at a random loation when the mission starts.I have a editor created BMP named bmp2_1 that goes to setM location at start.How can I make the BMP face towards a certain object no matter where it spawns in at?As there are random spawn possibilitys sometimes the vehicle is facing the wrong way at mission start.

bmp2_1 setPos [(getmarkerPos "setM" select 0)+ 10,(getmarkerPos "setM" select 1)- 15];

Share this post


Link to post
Share on other sites

Place Functions module, then:

_relDir = [bmp2_1, _objectToPointTo] call BIS_fnc_DirTo;
bmp2_1 setDir _relDir;

Share this post


Link to post
Share on other sites
Place Functions module, then:

_relDir = [bmp2_1, _objectToPointTo] call BIS_fnc_DirTo;
bmp2_1 setDir _relDir;

wow thanks.Can't believe i overlooked this in the official functions list.

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  

×