Jump to content
AdirB

marker draw in trigger border

Recommended Posts

i want to mark a trigger border in my mission map 

i can do it?(mp)

Share this post


Link to post
Share on other sites

Sure, get the trigger shape with (https://community.bistudio.com/wiki/triggerArea) and the create the marker. E.g.:

_trigger = _this select 0;
_MarkerName = _this select 1;

_area = triggerArea _trigger;
_marker = createMarker [_MarkerName, position _trigger];
_MarkerName setMarkerSize [_area select 0, _area select 1];
if (_area select 3) then {_MarkerName setMarkerShape "RECTANGLE"} else {_MarkerName setMarkerShape "ELLIPSE"};
_MarkerName setMarkerDir _area select 2;
//_MarkerName setMarkerColor "ColorBlue"; or someting https://community.bistudio.com/wiki/setMarkerColor
//_MarkerName setMarkerText "Some text";

Save it as markerDraw.sqf and call it by using _nul = [nameOfTrigger, "SomeName"] execVM "markerDraw.sqf".

Share this post


Link to post
Share on other sites
_mrk = [ "mytrigMrk", myTrigger ] call BIS_fnc_markerToTrigger;
_mrk setMarkerBrush "Border";
Where myTrigger is the name given to the trigger in Eden and "mytrigMrk" is the name of the marker to create. The function returns the created marker.

Share this post


Link to post
Share on other sites
markerToTrigger;

 

Those functions are totally named wrong/backwards.  Should have been triggerToMarker or markerFromTrigger...  Slightly confusing.

Share this post


Link to post
Share on other sites

I dont know, makes sense once you know they are there.

I want to change a MARKER TO a TRIGGERs dimensions. BIS_fnc_markerToTrigger

I want to change a TRIGGER TO a MARKERs dimensions. BIS_fnc_triggerToMarker

Share this post


Link to post
Share on other sites
_mrk = [ "mytrigMrk", myTrigger ] call BIS_fnc_markerToTrigger;
_mrk setMarkerBrush "Border";
Where myTrigger is the name given to the trigger in Eden and "mytrigMrk" is the name of the marker to create. The function returns the created marker.

 

thanks 

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

×