Jump to content
Steel UK

Marker Area for BIS_fnc_findSafePos

Recommended Posts

Good afternoon, all and I hope everyone is doing well.

 

I am looking for some assistance with something here. 

 

I am trying to use this: https://community.bistudio.com/wiki/BIS_fnc_findSafePos

 

The function call has an optional parameter of blacklistPos which takes a String - marker area as a value. 

 

However, there appears that this marker area string does not exist.

 

I have found a matching method for triggers but not markers: https://community.bistudio.com/wiki/triggerArea

 

Does anyone have any ideas?

 

Thank you for any help anyone can provide me with.

Share this post


Link to post
Share on other sites

So in case anyone comes across this, I have managed to solve my issue by simple putting the marker in an array and providing that as a variable. 

 

So:

 

_pos = [player, 1000, 10000, 3, 0, 3, 0, [_markerFriendlyTerritory]] call BIS_fnc_findSafePos;

 

as opposed to:

 

_pos = [player, 1000, 10000, 3, 0, 3, 0, _markerFriendlyTerritory] call BIS_fnc_findSafePos;

 

 

Share this post


Link to post
Share on other sites

The documentation specifically asks for "String - marker area" when it should really say "String - marker name". 

 

That's what was throwing me off. 

 

 

Share this post


Link to post
Share on other sites

Have you got the blacklist to work? I never did.

Share this post


Link to post
Share on other sites
10 hours ago, Steel UK said:

So in case anyone comes across this, I have managed to solve my issue by simple putting the marker in an array and providing that as a variable. 

 

So:

 

_pos = [player, 1000, 10000, 3, 0, 3, 0, [_markerFriendlyTerritory]] call BIS_fnc_findSafePos;

 

as opposed to:

 

_pos = [player, 1000, 10000, 3, 0, 3, 0, _markerFriendlyTerritory] call BIS_fnc_findSafePos;

 

 

Thats what is says in ingame help

 

Quote

7: (Optional) ARRAY - black listed areas in format [area1, area2, area3, ...areaN], where area is: 
                ARRAY - array in format [topLeftCorner, bottomRightCorner]
                or
                OBJECT - trigger area
                STRING - marker area
                LOCATION - location area
                ARRAY - array in format [center, distance] or [center, a, b, angle, rect] or [center, a, b, angle, rect, height]

The blacklist is a list, i.e array because it could be multiple areas, multiple markers

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

×