CTakeDamageInfo.GetAmmoType
From GMod Wiki
Function | |
Syntax | CTakeDamageInfo:GetAmmoType( ) |
Description: | |
Returns the ammo type which caused the damage, or -1 if the damage was not caused with ammo. | |
Returns: | Integer ammo type |
In Object: | CTakeDamageInfo |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.GetAmmoType]CTakeDamageInfo.GetAmmoType [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
List of bullets' ids:
- Pistol - 3
- SMG - 4
- Magnum - 5
- Ar2 - 1
- Shotgun - 7