mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
25 lines
490 B
Plaintext
25 lines
490 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_1(_player);
|
||
|
|
||
|
if (_player getVariable [QGVAR(isSitting), false]) then {
|
||
|
_player setVariable [QGVAR(isSitting), nil];
|
||
|
GVAR(seat) setVariable [QGVAR(seatOccupied), nil, true];
|
||
|
QGVAR(seat) = nil;
|
||
|
};
|