Jump to content
Sign in to follow this  
mrthames

CreateVehicle script does not work. Any ideas?

Recommended Posts

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;  

Edited by mrthames

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×