ACE3/addons/sitting/functions/fnc_stand.sqf

27 lines
452 B
Plaintext
Raw Normal View History

2015-06-07 20:00:43 +00:00
/*
* Author: Jonpas
* Stands up the player.
*
* Arguments:
* Player <OBJECT>
*
* Return Value:
* None
*
* Example:
* player call ace_sitting_fnc_stand;
*
* Public: No
*/
#include "script_component.hpp"
PARAMS_1(_player);
2015-06-07 20:00:43 +00:00
// Restore animation
[_player, "", 2] call EFUNC(common,doAnimation);
2015-06-07 20:00:43 +00:00
// Set variables to nil
_player setVariable [QGVAR(isSitting), nil];
2015-06-07 20:00:43 +00:00
GVAR(seat) setVariable [QGVAR(seatOccupied), nil, true];
GVAR(seat) = nil;