- Documentation
- Server functions
- getObjectProperty
Function
getObjectProperty
Returns a physical property stored with setObjectProperty; "all" returns a table of all of them.
Syntax
any getObjectProperty(object theObject, string property)Arguments
theObjectobject- The object.
propertystring- Property name, or
"all".
Returns
The value, or false when not set.
Example
local obj = createObject(1225, 0, 0, 3)
for k, v in pairs(getObjectProperty(obj, "all")) do outputDebugString(k .. "=" .. tostring(v)) end