Skip to content

Commit

Permalink
moveInAny seems to work better than moveInDriver. WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ViperMaul committed Jul 28, 2015
1 parent bfd3aa7 commit 63dd198
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/common/functions/fnc_headBugFix.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,22 @@
*/

#include "script_component.hpp"
private ["_pos","_dir","_anim"];
if (player != vehicle player || {(player getvariable ["ace_isUnconscious", false])}) exitWith {};
titleCut ["", "BLACK"];
_pos = getposATL player;
_dir = getDir player;
_anim = animationState player;
// create invisible headbug fix vehicle
_ACE_HeadbugFix = createVehicle ["ACE_Headbug_Fix", getposATL player, [], 0, "NONE"];
player moveinDriver _ACE_HeadbugFix;
_ACE_HeadbugFix setDir _dir;
player moveInAny _ACE_HeadbugFix;
sleep 1.0;
unassignVehicle player;
player action ["Eject", vehicle player];
sleep 1.0;
deleteVehicle _ACE_HeadbugFix;
player setposATL _pos;
player setDir _dir;
titleCut ["", "PLAIN"];

0 comments on commit 63dd198

Please sign in to comment.