Jump to content
Sign in to follow this  
ofpier

how to place a unit on a bridge?

Recommended Posts

I place a bridge on desert island and then want to place a unit on it, but can't.

i used:

this setPos ((nearestBuilding this) buildingPos 0)

in the init field of the unit, but it places the unit in sea!

Share this post


Link to post
Share on other sites

The bridge objects don't have any defined buildingPos'es, as far as I know. You'll have to put the units manually on top of the bridge with:

this setPos [getPos this select 0, getPos this select 1, X]

...where X is the height of the unit in meters. You'll have to play around with it to get the correct value.

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  

×