I don't understand why, but every time a player activates the UH1Y it explodes. If it sits long enough it has time to take off, but eventually explodes. I have searched tirelessly to find a fix for this, but no dice. Can someone help me with this?
_veh_type="UH1Y";
_dir = getdir vehicle player;
_pos = getPos player;
_pos = [(_pos select 0)-20*sin(_dir),(_pos select 1)-20*cos(_dir),0];
_veh = createVehicle [_veh_type, _pos, [], 0, "NONE"];
_veh setDir _dir;