G.DamageInfo
From GMod Wiki
Function | |
Syntax | DamageInfo( ) |
Description: | |
Returns a new DamageInfo object. | |
Returns: | CTakeDamageInfo |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.DamageInfo]G.DamageInfo [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Creates a DamageInfo object with 10 units of damage. |
---|---|
Used on | |
Code | local Dmg = DamageInfo() Dmg:SetAttacker(self.Owner) Dmg:SetInflictor(self) Dmg:SetDamage(10) |
Output | N/A |