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