Revision Difference
CTakeDamageInfo:SetInflictor#563414
<function name="SetInflictor" parent="CTakeDamageInfo" type="classfunc">
<description>
Sets the inflictor of the damage for example a weapon.
For hitscan/bullet weapons this should the weapon.
⤶
⤶
For projectile ( rockets, etc ) weapons this should be the projectile.⤶
⤶
For projectile (rocket launchers, grenades, etc) weapons this should be the projectile and <page>CTakeDamageInfo:SetWeapon</page> should be the weapon.⤶
</description>
<realm>Shared</realm>
<args>
<arg name="inflictor" type="Entity">The new inflictor.</arg>
</args>
</function>