Units in Buildings

This works for placing units in a specific building position:

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

Where 33559 is the Map ID of the house you wanted to place yourself in and 8 is the position within the building. You can find the MapID by clicking the ID button in the editor and zooming in on the building you want. It will be the small number on the little white label that appears when zoomed close in.

You can use the Virtual House Position Module to easily check where each position in a building is.  Tophe’s wonderful Random House Patrol Script is very useful too.

Comments are closed.