ACE3/addons/sitting/functions/fnc_handleInterrupt.sqf

23 lines
385 B
Plaintext
Raw Normal View History

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