mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
moveInAny seems to work better than moveInDriver. WIP
This commit is contained in:
parent
bfd3aa71c4
commit
63dd19825b
@ -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"];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user