engineSetObjectGroupPhysicalProperty | Multi Theft Auto: Wiki Skip to content

engineSetObjectGroupPhysicalProperty

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

This page is incomplete! Help wanted!

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


This function sets physical property of given properties group.

Syntax

engineSetObjectGroupPhysicalProperty ( )

Code Examples

client
function lamppostCollision()
engineSetObjectGroupPhysicalProperty(111, "cause_explosion", true)
end
addEventHandler("onClientResourceStart", resourceRoot, lamppostCollision)
--Every time you hit a lamppost, an explosion will be created

See Also

Engine Functions
Engine Elements