Jump to content
Sign in to follow this  
Grimgor99

A few questions

Recommended Posts

Hey first post and i wanted to ask some questions

What is the script for setting a air unit Altitude? For when it spawns in the air

Also is there a script like player? exept for AI only, I am trying to do a script where the player and AI get HALO jumped auto from a plane and i have got AI to halo jump before, Just need the script for AI this didnt work

Share this post


Link to post
Share on other sites

put in the init line

this setpos [(getpos this select 0), (getpos this select 1), x]

this will spawn something 300 (mterers or feet i dont know) in the air

this setpos [(getpos this select 0), (getpos this select 1), 300]

Share this post


Link to post
Share on other sites

Or my way

this setpos (this call {_r = getpos _this;_r set [2, 50]; _r});

Or

this call {_r = getpos _this; _r set [2, 50]; _this setpos _r};

Default:

this setpos [(getpos this) select 0, (getpos this) select 1, 10];

Less characters ftw lol. Less CPU usage too I imagine.

Edited by Rommel

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  

×