Element/Object: Difference between revisions
Jump to navigation
Jump to search
Fernando187 (talk | contribs) mNo edit summary |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
The object class represents | The object class represents placed 3D models in the GTA world. Objects only represent models created by a script, they do not represent models that are part of the GTA's default landscape (these belong to the [[Buidling|building pool]]. This element can represent both dynamic and static objects (there is this distinction in GTA: San Andreas), although it is recommended to use [[Building|buildings]] for static models. | ||
The element type of this class is '''"object"'''. | The element type of this class is '''"object"'''. | ||
==XML syntax== | ==XML syntax== |
Revision as of 10:39, 14 October 2024
The object class represents placed 3D models in the GTA world. Objects only represent models created by a script, they do not represent models that are part of the GTA's default landscape (these belong to the building pool. This element can represent both dynamic and static objects (there is this distinction in GTA: San Andreas), although it is recommended to use buildings for static models.
The element type of this class is "object".
XML syntax
<object model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" interior="" dimension="" scale="" collisions="" alpha="" frozen="" />
Required Attributes
- model: The ID of the object being created. Since GTA has thousands of objects, these are hard to document on the wiki. Instead, they can be found using the object browser in the map editor.
- posX: A float representing the X position of the object.
- posY: A float representing the Y position of the object.
- posZ: A float representing the Z position of the object.
Optional Attributes
- rotX: A float representing the X rotation of the object in degrees.
- rotY: A float representing the Y rotation of the object in degrees.
- rotZ: A float representing the Z rotation of the object in degrees.
- interior: The interior world the object is in.
- dimension: The object's dimension number.
- scale: The object's scale.
- collisions: Enable/Disable object collisions.
- alpha: Changes the object alpha.
- frozen: Sets whether the object should be frozen (also known as static)
Related scripting functions
Client