engineGetObjectGroupPhysicalProperty | Multi Theft Auto: Wiki Skip to content

engineGetObjectGroupPhysicalProperty

Client-side
Server-side
Shared
Needs checking

This function was partially migrated from the old wiki. Please review manually:

  • Missing section: Properties
  • Missing section: Physical properties
  • Missing section: Damage effect
  • Missing section: Collision Response
  • Missing section: Fx Type
  • Missing section: Break Mode
  • Missing section: Fx Effect

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function gets physical property of given properties group.

Syntax

var engineGetObjectGroupPhysicalProperty ( int groupID, objectgroup-modifiable property )
Required Arguments
  • groupID: the id of physical properties group which you wish to get a property from.
  • property: MISSING_PARAM_DESC

Returns

  • var: value

Returns the value contained in given property if everything went well, error is raised otherwise.

Code Examples

shared
function getProperty(_, group, property)
var prop = {engineGetObjectGroupPhysicalProperty(tonumber(group), property)}
outputConsole(inspect(prop))
end
addCommandHandler ( "getProperty", getProperty )
--getProperty(120, "special_col_response")

See Also

Engine Functions
Engine Elements