Template:BuildingInfo

From Multi Theft Auto: Wiki
Revision as of 10:37, 14 October 2024 by Fernando187 (talk | contribs) (add note about performance)
Jump to navigation Jump to search

This template is used on Building and related pages.


Important information about buildings:

  • Buildings are essentially the same as objects, but internally (in GTA: San Andreas game logic) they use a separate streaming system that is not affected by objects, which can be created in any dimension unlike buildings. In terms of performance, using buildings for exterior mapping is more optimized than 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.