Garry's Mod Wiki

Revision Difference

GM:PlayerShouldTakeDamage#511113

<function name="PlayerShouldTakeDamage" parent="GM" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Returns true if the player should take damage from the given attacker.</description>⤶ <realm>Server</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="ply" type="Player">The player</arg>⤶ <arg name="attacker" type="Entity">The attacker</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Allow damage</ret>⤶ </rets>⤶ </function>⤶ ⤶