Hallo
Code
/*
Author: Natic
*/
private _chair = param [0,ObjNull,[ObjNull]];
life_sitting = 0;
private _standUp;
if (player getVariable ["restrained",false]) exitWith {};
if (player getVariable ["isTazed",false]) exitWith {};
switch(life_sitting) do
{
case 0:
{
_standUp = getPos player;
[player,"Crew"] remoteExecCall ["life_fnc_animSync",-2];
life_sitting = 1;
while {life_sitting} do
{
player setDir (getDir _chair) + 180;
player setPosATL [((getPosATL _chair) select 0),((getPosATL _chair) select 1),(((getPosATL _chair) select 2) + 0.09)];
};
};
case 1:
{
life_sitting = 0;
player setPos _standUp;
[player,""] remoteExecCall ["life_fnc_animSync",-2];
};
};
Alles anzeigen