Skip to content

Commit

Permalink
Add waypoint loiter altitude attribute (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 authored Nov 18, 2020
1 parent 64f7a54 commit c6f511c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions addons/attributes/initAttributes.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,23 @@
{waypointType _entity == "LOITER"}
] call FUNC(addAttribute);

[
"Waypoint",
["STR_3DEN_Waypoint_Attribute_LoiterAltitude_displayname", "STR_3DEN_Waypoint_Attribute_LoiterAltitude_tooltip"],
QGVAR(edit),
nil,
{
private _altitude = parseNumber _value;
{
if (waypointType _x == "LOITER") then {
_x setWaypointLoiterAltitude _altitude;
};
} forEach SELECTED_WAYPOINTS;
},
{str waypointLoiterAltitude _entity},
{waypointType _entity == "LOITER"}
] call FUNC(addAttribute);

[
"Waypoint",
[LSTRING(Timeout), LSTRING(Timeout_Tooltip)],
Expand Down

0 comments on commit c6f511c

Please sign in to comment.