Garry's Mod Wiki

Revision Difference

NPC:GetLastTimeTookDamageFromEnemy#546900

<function name="GetLastTimeTookDamageFromEnemy" parent="NPC" type="classfunc">⤶ <description>Returns <page>Global.CurTime</page> based time since this NPC last received damage from given enemy.⤶ </description>⤶ <added>2022.06.08</added>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="enemy" type="Entity" default="nil">The enemy to test. Defaults to currently active enemy (<page>NPC:GetEnemy</page>)</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">Time since this NPC last received damage from given enemy.</ret>⤶ </rets>⤶ </function>⤶ ⤶