Tactical Ladder - Fix args to cancleTLdeploy (#6280)

Fix #6232

cancelTLdeploy expects `[unit, mouse button key]`
This commit is contained in:
PabstMirror 2018-04-19 12:20:18 -05:00 committed by GitHub
parent 853b4ffe0a
commit f4473ccfd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -10,7 +10,7 @@
* None * None
* *
* Example: * Example:
* [_ladder] call ace_tacticalladder_fnc_cancelTLdeploy * [player, 1] call ace_tacticalladder_fnc_cancelTLdeploy
* *
* Public: No * Public: No
*/ */

View File

@ -18,5 +18,5 @@
params ["_unit"]; params ["_unit"];
if (!isNull GETMVAR(GVAR(ladder),objNull) && {GVAR(ladder) in attachedObjects _unit}) then { if (!isNull GETMVAR(GVAR(ladder),objNull) && {GVAR(ladder) in attachedObjects _unit}) then {
[_unit, GVAR(ladder)] call FUNC(cancelTLdeploy); [_unit, 1] call FUNC(cancelTLdeploy);
}; };

View File

@ -18,5 +18,5 @@
params ["_unit"]; params ["_unit"];
if (!isNull GETMVAR(ladder,objNull) && {GVAR(ladder) in attachedObjects _unit}) then { if (!isNull GETMVAR(ladder,objNull) && {GVAR(ladder) in attachedObjects _unit}) then {
[_unit, GVAR(ladder)] call FUNC(cancelTLdeploy); [_unit, 1] call FUNC(cancelTLdeploy);
}; };

View File

@ -21,9 +21,9 @@ if (isNull GETGVAR(ladder,objNull)) exitWith {};
params ["_newPlayer", "_oldPlayer"]; params ["_newPlayer", "_oldPlayer"];
if (GVAR(ladder) in attachedObjects _newPlayer) then { if (GVAR(ladder) in attachedObjects _newPlayer) then {
[_newPlayer, GVAR(ladder)] call FUNC(cancelTLdeploy); [_newPlayer, 1] call FUNC(cancelTLdeploy);
}; };
if (GVAR(ladder) in attachedObjects _oldPlayer) then { if (GVAR(ladder) in attachedObjects _oldPlayer) then {
[_oldPlayer, GVAR(ladder)] call FUNC(cancelTLdeploy); [_oldPlayer, 1] call FUNC(cancelTLdeploy);
}; };

View File

@ -20,5 +20,5 @@ params ["_unit"];
if (!local _unit) exitWith {}; if (!local _unit) exitWith {};
if (!isNull GETMVAR(ladder,objNull) && {GVAR(ladder) in attachedObjects _unit}) then { if (!isNull GETMVAR(ladder,objNull) && {GVAR(ladder) in attachedObjects _unit}) then {
[_unit, GVAR(ladder)] call FUNC(cancelTLdeploy); [_unit, 1] call FUNC(cancelTLdeploy);
}; };