Garry's Mod Wiki

Revision Difference

CTakeDamageInfo:SetDamageForce#546071

<function name="SetDamageForce" parent="CTakeDamageInfo" type="classfunc"> <description>Sets the directional force of the damage.</description>⤶ <realm>Shared</realm>⤶ <description>⤶ Sets the directional force of the damage.⤶ <note>⤶ This function seems to have no effect on player knockback. To disable knockback entirely, see [EFL_NO_DAMAGE_FORCES](https://wiki.facepunch.com/gmod/Enums/EFL#EFL_NO_DAMAGE_FORCES)⤶ </note>⤶ </description>⤶ ⤶ <realm>Shared</realm>⤶ ⤶ <args> <arg name="force" type="Vector">The vector to set the force to.</arg> </args> </function>