Template:ObjectInfo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Typo)
No edit summary
 
Line 3: Line 3:
* Objects only represent models '''created by a script''', they do not represent objects that are part of GTA's default landscape (these belong to the "building pool").
* Objects only represent models '''created by a script''', they do not represent objects that are part of GTA's default landscape (these belong to the "building pool").


* There is a distinction in GTA: San Andreas between static and dynamic models. The alternative [[createBuilding]] function allows you to create objects that are non-dynamic.
* There is a distinction in GTA: San Andreas between static and dynamic models. The alternative [[createBuilding]] function allows you to create objects that are non-dynamic, utilizing the GTA Building pool, which makes better use of memory.


* The [[createObject]] function can also create non-dynamic objects, but for optimization reasons '''it is recommended to spawn [[building|Buildings]] when creating static objects that don't rely on the [[Dimension]] system''' (buildings don't use the same MTA object-streaming system).
* The [[createObject]] function can also create non-dynamic objects, but for optimization reasons '''it is recommended to spawn [[building|Buildings]] when creating static objects that don't rely on the [[Dimension]] system''' (buildings don't use the same MTA object-streaming system).

Latest revision as of 13:39, 5 January 2025

This template is used on Object and related pages.


Dialog-warning.svg Important info about Objects

  • Objects only represent models created by a script, they do not represent objects that are part of GTA's default landscape (these belong to the "building pool").
  • There is a distinction in GTA: San Andreas between static and dynamic models. The alternative createBuilding function allows you to create objects that are non-dynamic, utilizing the GTA Building pool, which makes better use of memory.
  • The createObject function can also create non-dynamic objects, but for optimization reasons it is recommended to spawn Buildings when creating static objects that don't rely on the Dimension system (buildings don't use the same MTA object-streaming system).