Jump to content

Recommended Posts

I'm using BIS_fnc_findSafePos to find a safe position to spawn a group, then using CBA_fnc_taskDefend to set them up to defend.

 

Issue - BIS_fnc_findSafePos returns pos as [X,Y] but CBA_fnc_taskDefend wants pos as [X,Y,Z].

 

Is there some kind of conversion function for this, or do I literally just append a "1" to the end of the pos array returned by BIS_fnc_findSafePos ?

 

Thanks.

Share this post


Link to post
Share on other sites

use pushBack to append just your wanted height in meters. I guess you want it on ground therefore push 0.

  • Thanks 1

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

×