CTakeDamageInfo.GetDamagePosition

From GMod Wiki

Jump to: navigation, search
Function
Syntax CTakeDamageInfo:GetDamagePosition( )
Description:
Gets the damage position.
Returns: Vector damage position
In Object: CTakeDamageInfo
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.GetDamagePosition]CTakeDamageInfo.GetDamagePosition [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrint the damage position.
Used onNewerServer.png
Code
function GM:ScalePlayerDamage(ply,hitgroup,dmginfo)
   print(dmginfo:GetDamagePosition())
end
OutputInteger x Integer y Integer z


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox