Skip to content

Commit

Permalink
Common - Improve MarkerLocal (#10437)
Browse files Browse the repository at this point in the history
* Common - Use MarkerLocal

* createMarkerLocal
  • Loading branch information
BrettMayson authored Oct 21, 2024
1 parent 5afc1d9 commit 07a027d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions addons/arsenal/missions/Arsenal.VR/initPlayerLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ for "_i" from 5 to 11 do {
private _square = createVehicle ["VR_Area_01_square_1x1_grey_F", position _unit, [], 0, "NONE"];
_square setPosASL getPosASL _unit;

private _marker = createMarker [QGVAR(start), getPosWorld _unit];
private _marker = createMarkerLocal [QGVAR(start), getPosWorld _unit];
_marker setMarkerType "mil_start";

// Init Arsenal
Expand Down Expand Up @@ -165,8 +165,8 @@ _unit addEventHandler ["AnimChanged", {
private _markers = [];

{
private _marker = createMarker [vehicleVarName _x, position _x];
_marker setMarkerType "mil_dot";
private _marker = createMarkerLocal [vehicleVarName _x, position _x];
_marker setMarkerTypeLocal "mil_dot";
_marker setMarkerColor "ColorOrange";

_markers pushBack _marker;
Expand Down
6 changes: 3 additions & 3 deletions addons/zeus/functions/fnc_ui_searchArea.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ private _fnc_onConfirm = {
private _position = getPos _logic;
private _marker = QGVAR(ModuleSearchArea) + str _unit;

createMarker [_marker, _position];
_marker setMarkerAlpha 0;
_marker setMarkerShape "ELLIPSE";
createMarkerLocal [_marker, _position];
_marker setMarkerAlphaLocal 0;
_marker setMarkerShapeLocal "ELLIPSE";
_marker setMarkerSize [_radius, _radius];

[QGVAR(moduleSearchArea), [_unit, _marker], _unit] call CBA_fnc_targetEvent;
Expand Down

0 comments on commit 07a027d

Please sign in to comment.