Jump to content
Sign in to follow this  
breeze

Units on building tops

Recommended Posts

I recently picked up the Virtual house position monitor and thats really nice but I was wondering if theres an easy way to get building heights and positions for the roofs say like on a shapur map there are alot of very tall buildings if I wanted to lies the edge of a building with sad bags maybe a static weapon or a sniper.

Whats the easiest way to get the building information for the top of the roof

this setPos ((position this nearestObject 33559) buildingPos 7)

I don't know that all roof tops have positions if not how to I get the top height

Also can I use a very small marker and UPSMON or something else to get the AI to look around at all 4 edges of the building without falling off?

Share this post


Link to post
Share on other sites

I just use the

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

X being the height in meters, and just start at 10 and go from there and visibly check it in the editor, once you get the right height for the first one, its a lot easier 2 judge all of the rest.

Share this post


Link to post
Share on other sites

Here's an even quicker way...

Lets say the building is height 100m. We wanna set its height ABOVE this (it doesn't matter what, as long as its above this height).

UNIT flyinheight 150;

This will set it to the first surface -underneath- 150m, i.e. the building's top.

Hope this helps!

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  

×