This repository has been archived by the owner on Feb 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Kingsley
committed
Mar 5, 2016
1 parent
4d9a429
commit 4ad4c98
Showing
6 changed files
with
47 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
"ARCOMM", | ||
"Apply Gear to Unit", | ||
{ | ||
_unitUnderCursor = _this select 1; | ||
|
||
if (!isNull _unitUnderCursor && isPlayer _unitUnderCursor) then { | ||
missionNamespace setVariable ['Ares_CopyPaste_Dialog_Text', ""]; | ||
missionNamespace setVariable ["Ares_CopyPaste_Dialog_Result", ""]; | ||
_dialog = createDialog "Ares_CopyPaste_Dialog"; | ||
waitUntil {dialog}; | ||
waitUntil {!dialog}; | ||
_dialogResult = missionNamespace getVariable ["Ares_CopyPaste_Dialog_Result", -1]; | ||
|
||
if (_dialogResult == 1) then { | ||
_pastedText = missionNamespace getVariable ["Ares_CopyPaste_Dialog_Text", "r"]; | ||
[[_pastedText, _unitUnderCursor], "f_fnc_assignGear", _unitUnderCursor, false, true] call BIS_fnc_MP; | ||
}; | ||
}; | ||
} | ||
] call Ares_fnc_RegisterCustomModule; |
7 changes: 0 additions & 7 deletions
7
Addons/ares_zeusExtensions/scripts/ARC_disablePositionalACRE.sqf
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
Addons/ares_zeusExtensions/scripts/ARC_enablePositionalACRE.sqf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
"ARCOMM", | ||
"Positional ACRE", | ||
{ | ||
_options = [ | ||
["Status:", ["Enabled", "Disabled"]] | ||
]; | ||
|
||
_dialogResult = [ | ||
"Positional ACRE", | ||
_options | ||
] call Ares_fnc_ShowChooseDialog; | ||
|
||
if (count _dialogResult > 0) then { | ||
_bool = switch ( _options select 0 select 1 select (_dialogResult select 0) ) do { | ||
case "Enabled": {true}; | ||
case "Disabled": {false}; | ||
default {false}; | ||
}; | ||
|
||
[_bool] call acre_api_fnc_setSpectator; | ||
}; | ||
} | ||
] call Ares_fnc_RegisterCustomModule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters