Module gma.show.property
GMA LUA functions to get and adjust object properties
Functions
gma.show.property.amount (handle) | Returns the number of properties associated with this handle |
gma.show.property.name (handle, index) | Returns the name of the object property at a given index (by ID) for said handle |
gma.show.property.get (handle, index) | Returns the object property at a given index (by ID) for said handle |
gma.show.property.get (handle, property_name) | Returns the object property at a given index (by name) for said handle |
gma.show.property.set (handle, index, value) | Sets an object property at a given index (by ID) for said handle |
gma.show.property.set (handle, property_name, value) | Sets an object property at a given index (by name) for said handle |
Functions
- gma.show.property.amount (handle)
-
Returns the number of properties associated with this handle
Parameters:
- handle number Handle as given by gma.show.getobj.handle
Returns:
-
number
Number of properties attached to handle object
- gma.show.property.name (handle, index)
-
Returns the name of the object property at a given index (by ID) for said handle
Parameters:
- handle number gma.show.getobj.handle
- index number Property index by ID
Returns:
-
string
The object property name.
- gma.show.property.get (handle, index)
-
Returns the object property at a given index (by ID) for said handle
Parameters:
- handle number gma.show.getobj.handle
- index number Property index by ID
Returns:
-
string
The object property.
- gma.show.property.get (handle, property_name)
-
Returns the object property at a given index (by name) for said handle
Parameters:
- handle number gma.show.getobj.handle
- property_name string ???
Returns:
-
string
The object property.
- gma.show.property.set (handle, index, value)
-
Sets an object property at a given index (by ID) for said handle
Parameters:
- handle number gma.show.getobj.handle
- index number ???
- value string ???
Returns:
-
bool
success ???
- gma.show.property.set (handle, property_name, value)
-
Sets an object property at a given index (by name) for said handle
Parameters:
- handle number gma.show.getobj.handle
- property_name string ???
- value string ???
Returns:
-
bool
success ???