Template:BuildingInfo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (edit part about dimension)
Line 1: Line 1:
<noinclude>This template is used on [[Building]] and related pages. <hr></noinclude>
<noinclude>This template is used on [[Building]] and related pages. <hr></noinclude>
== Important information about [[Building|buildings]]: ==
== Important information about [[Building|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 [[Building|Buildings]] can contain '''glass''' and '''shadows''', unlike those created as [[Object|Objects]](which can be created in any [[Dimension|dimension]]).
* 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 [[Building|Buildings]] can contain '''glass''' and '''shadows''', unlike those created as [[Object|Objects]](which are missing these features).


* 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.
* 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.
Line 11: Line 11:
* 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.
* 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.


* Buildings cannot be created outside [[Dimension|dimension]] 0. Function [[setElementDimension]] will return false on any building.
* Buildings cannot change [[Dimension|dimension]]. Function [[setElementDimension]] will return false on any building. A building is created in a specific [[Interior|interior world]], like the default GTA:SA landscape objects. All '''buildings appear in ANY DIMENSION'''.

Revision as of 13:44, 22 October 2024

This template is used on Building and related pages.


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 are missing these features).
  • 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.
  • Buildings cannot change dimension. Function setElementDimension will return false on any building. A building is created in a specific interior world, like the default GTA:SA landscape objects. All buildings appear in ANY DIMENSION.