Jump to content
Sign in to follow this  
Robustcolor

getMarkerSize for findSafePos

Recommended Posts

Hi, what am i doing wrong here? I get some sort of scalar error.

_ao = getMarkerpos "Marker1";
_aosize = getMarkersize "Marker1";

_pos1 = [_ao, 0, 150, 5, 0, 0.4, 0, [], _ao] call BIS_fnc_findSafePos;

 

Share this post


Link to post
Share on other sites

Sorry, i just noticed. It works when not using the _aosize = getMarkersize "Marker1";

 

This code gives a scalar error. 

_pos1 = [_ao, 0, _aosize, 5, 0, 0.4, 0, [], _ao] call BIS_fnc_findSafePos;

Share this post


Link to post
Share on other sites

I guess it would had to look something like this with choosing axisA for the radius on my Marker1.

 

_ao = getMarkerpos "Marker1";

_aosize = getMarkerSize "Marker1";

 _axisA = _aosize select 0;

_radius = _axisA;

_pos1 = [_ao, 0, _radius, 5, 0, 0.4, 0, [], _ao] call BIS_fnc_findSafePos;

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  

×