Element/Building: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(add object tids link)
mNo edit summary
Line 5: Line 5:
{{BuildingInfo}}
{{BuildingInfo}}


==Object Model IDs==
==Object Models==
[[Object_IDs|List of IDs]]
[[Object_IDs|List of Object Model IDs]]


==Related scripting functions==
==Related scripting functions==

Revision as of 10:51, 14 October 2024

The building class represents static 3D models in the GTA world. There is a distinction in GTA: San Andreas between static and dynamic models. Examples of buildings include building models, roads, and terrain. Objects created as Buildings can contain glass and shadows, unlike those created as Objects.

The element type of this class is "building".

Important information about buildings:

  • There is a distinction in GTA: San Andreas between static and dynamic models (these use a separate streaming system). Examples of buildings include building models, roads, and terrain. Objects created as Buildings can contain glass and shadows, unlike those created as Objects(which can be created in any dimension).
  • Using buildings for exterior mapping is more optimized than using objects. Gains in FPS can be noticed in areas where a lot of objects were replaced with buildings of this new system.
  • Buildings can only be created inside regular GTA:SA Map Boundaries (X between -3000 and 3000; Y between -3000 and 3000). Use createObject to spawn objects outside these normal limits.
  • Created buildings can have LOD models, which is possible using createBuilding to spawn the LOD building, then setLowLODElement to associate it with a non-LOD building element created beforehand. LOD model distance changed with engineSetModelLODDistance affects buildings too.

Object Models

List of Object Model IDs

Related scripting functions