Entity.TakePhysicsDamage

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:TakePhysicsDamage( CTakeDamageInfo dmginfo )
Description:
Apply physics damage to the specified entity.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.TakePhysicsDamage]Entity.TakePhysicsDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example function applies a specified amount of physics damage to the specified entity when damaged, usually called from the ENT.OnTakeDamage hook
Used onNewerServer.png
Code
function ENT:OnTakeDamage( dmginfo )  
    self:TakePhysicsDamage( dmginfo ) 
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox