CTakeDamageInfo.SetInflictor
From GMod Wiki
| Function | |
| Syntax | CTakeDamageInfo:SetInflictor( Entity inflictor ) |
| Description: | |
| Sets the inflictor entity. | |
| Returns: | nil |
| In Object: | CTakeDamageInfo |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.SetInflictor]CTakeDamageInfo.SetInflictor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | N/A | ||
|---|---|---|---|
| Used on | |||
| Code |
| ||
| Output | N/A |
Additional Notes
- This is useful for giving making entities produced by a weapon credit the weapon.