Fixed event statement arguments, reworded comment

This commit is contained in:
jonpas 2015-07-07 03:46:54 +02:00
parent cb210f92a0
commit 815b7984aa
3 changed files with 4 additions and 5 deletions

View File

@ -7,6 +7,5 @@ if !(hasInterface) exitWith {};
["isNotSitting", {!((_this select 0) getVariable [QGVAR(isSitting), false])}] call EFUNC(common,addCanInteractWithCondition); ["isNotSitting", {!((_this select 0) getVariable [QGVAR(isSitting), false])}] call EFUNC(common,addCanInteractWithCondition);
// Handle interruptions // Handle interruptions
["medical_onUnconscious", {_player call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler); ["medical_onUnconscious", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
["SetHandcuffed", {_player call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler); ["SetHandcuffed", {_this call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);
["SetSurrendered", {_player call DFUNC(handleInterrupt)}] call EFUNC(common,addEventhandler);

View File

@ -3,7 +3,7 @@
* Handles interruptions of sitting, like killed or unconsciousness. * Handles interruptions of sitting, like killed or unconsciousness.
* *
* Arguments: * Arguments:
* Player <OBJECT> * 0: Player <OBJECT>
* *
* Return Value: * Return Value:
* None * None

View File

@ -38,7 +38,7 @@ _sitRotation = if (isNumber (_configFile >> QGVAR(sitRotation))) then {getNumber
// Set direction and position // Set direction and position
_player setDir _sitDirection; _player setDir _sitDirection;
// Can NOT use ASL/ATL as modelToWorld returns absolute world position // No need for ATL/ASL as modelToWorld returns in format position
_player setPos (_seat modelToWorld _sitPosition); _player setPos (_seat modelToWorld _sitPosition);
// Set variables // Set variables