Jump to content
Sign in to follow this  
Cytreen

Spawn object class needs heigth set?

Recommended Posts

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

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

_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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×