Jump to content
Sign in to follow this  
Spectre-63

placing positions on top of buildings

Recommended Posts

Hi all -

a friend and I were discussing making missions earlier tonight and he brought up something neither of us knew how to do: place troops and/or positions on top of different buildings. He said that the majority of the buildings wouldn't allow him to place the troops on the roof...when he put them there, they'd wind up inside. He was only able to place them on the roof if it was a building that the player would normally be able to walk up to the roof, if that makes any sense.

Is this just a limitation of the engine, or is it something he's doing wrong?

Thanks!

Share this post


Link to post
Share on other sites

to place units at certain heights i use this (put it in the init line of the object)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setpos [getpos this select 0, getpos this select 1, X]

X = height

for example: this setpos [getpos this select 0, getpos this select 1, 4]

you have to play around with the height to get the object where you want.

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  

×