mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
669 B
Plaintext
26 lines
669 B
Plaintext
/**
|
|
* fnc_headbugfix.sqf
|
|
* @Descr: Fixes animation issues that may get you stuck
|
|
* @Author: rocko
|
|
*
|
|
* @Arguments:
|
|
* @Return: nil
|
|
* @PublicAPI: true
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
if (player != vehicle player || {(player getvariable ["ace_isUnconscious", false])}) exitWith {};
|
|
titleCut ["", "BLACK"];
|
|
_pos = getposATL player;
|
|
// create invisible headbug fix vehicle
|
|
_ACE_HeadbugFix = createVehicle ["ACE_Headbug_Fix", getposATL player, [], 0, "NONE"];
|
|
player moveinDriver _ACE_HeadbugFix;
|
|
sleep 1.0;
|
|
unassignVehicle player;
|
|
player action ["Eject", vehicle player];
|
|
sleep 1.0;
|
|
deleteVehicle _ACE_HeadbugFix;
|
|
player setposATL _pos;
|
|
titleCut ["", "PLAIN"];
|
|
|