Garry's Mod Wiki

Revision Difference

NPC:GetEnemyFirstTimeSeen#527398

<function name="GetEnemyFirstTimeSeen" parent="NPC" type="classfunc">⤶ <description>Returns the first time an NPC's enemy was seen by the NPC.</description>⤶ <realm>Server</realm>⤶ <added>2020.06.24</added>⤶ <args>⤶ <arg name="enemy" type="Entity" default="GetEnemy()">The enemy to check</arg>⤶ </args>⤶ <rets>⤶ <ret name="time" type="number">First time the given enemy was seen</ret>⤶ </rets>⤶ </function>