Entity.TakePhysicsDamage
From GMod Wiki
| Function | |
| Syntax | Entity:TakePhysicsDamage( CTakeDamageInfo dmginfo ) |
| Description: | |
| Apply physics damage to the specified entity. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.TakePhysicsDamage]Entity.TakePhysicsDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | This example function applies a specified amount of physics damage to the specified entity when damaged, usually called from the ENT.OnTakeDamage hook |
|---|---|
| Used on | |
| Code | function ENT:OnTakeDamage( dmginfo ) self:TakePhysicsDamage( dmginfo ) end |
| Output | N/A |