Element/Building: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Tag: Manual revert
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
The building class represents static, 3D models in the GTA world. Examples of buildings include building models, roads, and terrain. [[Building|Buildings]], unlike [[Object|objects]], can contain '''glass''' and '''shadows'''.
The building class represents '''static''' 3D models in the GTA world.


The element type of this class is '''"building"'''.
The element type of this class is '''"building"'''.
{{BuildingInfo}}


{{BuildingInfo}}
==[[File:Folder-saved-search.svg|48px]] Object Models==
[[Object_IDs|List of Object Model IDs]]


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

Latest revision as of 12:48, 4 November 2024

The building class represents static 3D models in the GTA world.

The element type of this class is "building".

Dialog-warning.svg Important info 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 are missing these features).
  • Using buildings for 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. This limitation is probably going to stop existing in the near future.
  • Created buildings can have LOD models. The procedure is as follows: spawn the LOD building using createBuilding, then use setLowLODElement to associate it with the non-LOD building element you created beforehand. LOD model distance changed with engineSetModelLODDistance works for buildings.
  • Buildings cannot appear in certain a dimension, and not show in others. Function setElementDimension returns false on any building. A building is created in a specific interior world (such as 0, the main world), like the default GTA:SA landscape objects. All buildings appear in EVERY DIMENSION.

Folder-saved-search.svg Object Models

List of Object Model IDs

Related scripting functions