Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common - Improve MarkerLocal #10437

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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