Jump to content
Sign in to follow this  
widjiwagan

Problems with editor

Recommended Posts

ok, i accidentally moved a soldier into the spot of a tower and he started in the top of the tower, but i couldn't recreate this. is their a command to make him climb the ladder, then take out his gun?

Share this post


Link to post
Share on other sites

You can also change the height of the starting position of the soldier. Type in his init field:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

this setpos [(getpos this select 0), (getpos this select 1), (getpos this select 2)+n]

<span id='postcolor'>

Just replace n with the height in meters.

Share this post


Link to post
Share on other sites
Guest SC Jolly

But you can't place them ON the tower when using editor-towers. (towers from Editor-addons). And a question: How would it look like if someone created a script wich DISABLED the "lie-down-thingy", so that there could be guards in towers, without standup-down-up-down...

Share this post


Link to post
Share on other sites

to stop them lying down just do this, its not a script, its a command wink.gif:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

unitname setunitpos "up" - keeps them up

unitname setunitpos "down" - keeps them down

unitname setunitpos "auto" - lets AI decide

<span id='postcolor'>

Take your pick biggrin.gif

Share this post


Link to post
Share on other sites

You don't need a script for keeping the soldier from lying down. Just use:

unitname setunitpos "up"

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  

×