Charles Barkley 1 Posted June 26, 2018 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 Share this post Link to post Share on other sites
whiztler 137 Posted June 27, 2018 Have a peek here: https://community.bistudio.com/wiki/setPosATL To align an the tent with below ground or object: _tent setVectorUp surfaceNormal position _tent; Share this post Link to post Share on other sites
pierremgi 4930 Posted June 27, 2018 _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
Charles Barkley 1 Posted June 27, 2018 Thank you for your help guys! 1 Share this post Link to post Share on other sites