Jump to content

Recommended Posts

Hey everybody,

 

I am working on my first script and unfortunately can not find any results at google or in here for a specific question. I hope it therefore is actually possible!

 

Please consider following script snippet

 

_tent = _tentType createVehicle [0,0,0];
'tent spawned to world' call ReconMod_fnc_log;

_tent setpos (_caller modelToWorld [-5,5,0]);
'tent moved to player position' call ReconMod_fnc_log;

And this is how the tent spawns. I would like to have it snapping to the surface. When I try so spawn it on a hill or something it happens to disappear completely 

 

 

image.png

 

 

 

Share this post


Link to post
Share on other sites

_tent =  createVehicle ["Land_TentDome_F",(player getPos [5,getdir player]),[],0,"none"];  // for a standard tent dome.

 

Just have a try!

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

×