Element/Building: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (add example of dyn object)
Line 4: Line 4:
The element type of this class is '''"building"'''.
The element type of this class is '''"building"'''.


Buildings cannot be created with dynamic object model IDs (like a door that opens when you push it), they are meant to be used for static objects, mainly buildings as the name suggests.
Buildings cannot be created with dynamic object model IDs (like a door that opens when you push it), they are meant to be used for static objects, mainly buildings as the name suggests. For example, [https://dev.prineside.com/en/gtasa_samp_model_id/model/1502-Gen_doorINT04/ object ID 1502 is a dynamic object model].


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

Revision as of 10:01, 8 October 2024

The building class represents static, 3-D models in the GTA world. Examples of buildings include building models, roads, and terrain. Buildings, unlike objects, can contain glass and shadows. The element type of this class is "building".

Buildings cannot be created with dynamic object model IDs (like a door that opens when you push it), they are meant to be used for static objects, mainly buildings as the name suggests. For example, object ID 1502 is a dynamic object model.

Related scripting functions