ACE3/addons/sitting/functions/fnc_handleInterrupt.sqf
2015-08-07 15:12:24 +02:00

23 lines
385 B
Plaintext

/*
* Author: Jonpas
* Handles interruptions of sitting, like killed or unconsciousness.
*
* Arguments:
* 0: Player <OBJECT>
*
* Return Value:
* None
*
* Example:
* player call ace_sitting_fnc_handleInterrupt
*
* Public: No
*/
#include "script_component.hpp"
params ["_player"];
if (_player getVariable [QGVAR(isSitting), false]) then {
_player call FUNC(stand);
};