Fix tap shoulders keybind

This commit is contained in:
esteldunedain 2015-05-15 15:52:09 -03:00
parent eed76d5bcf
commit 89fe91cce0
2 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,7 @@ private ["_team"];
if !([ACE_player, cursorTarget] call FUNC(canTapShoulder)) exitWith {false}; if !([ACE_player, cursorTarget] call FUNC(canTapShoulder)) exitWith {false};
// Statement // Statement
[ACE_player, cursorTarget] call FUNC(tapShoulder); [ACE_player, cursorTarget, 0] call FUNC(tapShoulder);
true true
}, },
{false}, {false},

View File

@ -5,6 +5,7 @@
* Arguments: * Arguments:
* 0: Player <OBJECT> * 0: Player <OBJECT>
* 1: Target <OBJECT> * 1: Target <OBJECT>
* 2: Shoulder which was tapped <NUMBER>
* *
* Return value: * Return value:
* None * None
@ -16,7 +17,7 @@
*/ */
#include "script_component.hpp" #include "script_component.hpp"
EXPLODE_3_PVT(_this,_tapper,_target,_shoulderNum); PARAMS_3(_tapper,_target,_shoulderNum);
if (_target != ACE_player) exitWith { if (_target != ACE_player) exitWith {
addCamShake [4, 0.5, 5]; addCamShake [4, 0.5, 5];