Cytreen 14 Posted July 19, 2011 Need help setting object height using a game logic location. How do i set its height? logic init if(isserver)then{(createvehicle ["object",getpos this,[],0,"NONE"]) setdir ((getdir this)+90)}; Share this post Link to post Share on other sites
Strikor 10 Posted July 19, 2011 Something like this should work: if(isserver)then{(createvehicle ["object",[getPos this select 0, getPos this select 1, (getPos this select 2) +100],[],0,"NONE"]) setdir ((getdir this)+90)}; That would spawn it 100m in the air. Share this post Link to post Share on other sites
demonized 20 Posted July 19, 2011 _object setPos [getPos _object select 0, getPos _object select 1,200]; set object 200 meter up above in the air from its current position. Share this post Link to post Share on other sites
cobra4v320 27 Posted July 19, 2011 if (isserver) then { _object = createvehicle ["object",getpos objectname,[],0,"NONE"]; _object setpos [(getpos objectname select 0),(getpos objectname select 1),(getpos objectname select 2) + 90]; }; Share this post Link to post Share on other sites
Cytreen 14 Posted July 19, 2011 Thank you bis forums. Share this post Link to post Share on other sites