EngineRestoreObjectGroupPhysicalProperties
Jump to navigation
Jump to search
This function restores all physical properties of given properties group.
Syntax
bool engineRestoreObjectGroupPhysicalProperties ( int groupID )
Required Arguments
- groupID: the id of physical properties group which you wish to restore.
Returns
Returns true if everything went well, error is raised otherwise.
Example
Click to collapse [-]
Clientfunction restorePhysicalGroup(_, group) engineRestoreObjectGroupPhysicalProperties(tonumber(group)) end addCommandHandler ( "restorePhysicalGroup", restorePhysicalGroup ) --restorePhysicalGroup(120)
Requirements
Minimum server version | n/a |
---|---|
Minimum client version | 1.5.7-9.19626 |
Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.7-9.19626" />
See Also
- breakObject
- getObjectMass
- getObjectProperty
- respawnObject
- setObjectMass
- setObjectProperty
- toggleObjectRespawn
Shared