CTakeDamageInfo.GetDamagePosition
From GMod Wiki
Function | |
Syntax | CTakeDamageInfo:GetDamagePosition( ) |
Description: | |
Gets the damage position. | |
Returns: | Vector damage position |
In Object: | CTakeDamageInfo |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.GetDamagePosition]CTakeDamageInfo.GetDamagePosition [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Print the damage position. |
---|---|
Used on | |
Code | function GM:ScalePlayerDamage(ply,hitgroup,dmginfo) print(dmginfo:GetDamagePosition()) end |
Output | Integer x Integer y Integer z |
Additional Notes
- Returns the Hit position if it is bullet damage, don't know about other damage types