CTakeDamageInfo.GetDamageForce

From GMod Wiki

Revision as of 12:41, 31 December 2010 by Cube334 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax CTakeDamageInfo:GetDamageForce( )
Description:
Gets the directional force of the damage.
Returns: Vector
In Object: Ctakedamageinfo
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.GetDamageForce]CTakeDamageInfo.GetDamageForce [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis prints to console the directional force taken on an entity.
Used onNewerServer.png
Code
function ENT:OnTakeDamage( dmginfo )
	Msg( "Force:\t" .. tostring(dmginfo:GetDamageForce()) .. "\n" )
end
 
OutputThe directional force damage taken on an entity.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox