Jump to content
Sign in to follow this  
D. Patterson

Best way to safely spawn a vehicle?

Recommended Posts

So I have a script that randomly spawns a player at any Land_i_Shed_Ind_F on the map. However I want to spawn a HEMTT inside, or next to the shed. Safely 99% of the time. No getting stuck, no exploding, no crushing the player. How should I do this?

Share this post


Link to post
Share on other sites

Use a combination of createVehicle with "CAN_COLLIDE" and modelToWorld. Since garages are small, and HEMTT's are quite large, you may wish to consider spawning your vehicle somewhere else, rotating it, then moving it to it's final position, as well.

Share this post


Link to post
Share on other sites

You could also use that inconjunction with BIS_fnc_findSafePos.

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  

×