G.DamageInfo

From GMod Wiki

Revision as of 01:30, 25 October 2009 by CowThing (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax DamageInfo( )
Description:
Returns a new DamageInfo object.
Returns: CTakeDamageInfo
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.DamageInfo]G.DamageInfo [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionCreates a DamageInfo object with 10 units of damage.
Used onNewerShared.png
Code
local Dmg = DamageInfo()
Dmg:SetAttacker(self.Owner)
Dmg:SetInflictor(self)
Dmg:SetDamage(10)
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox