Garry's Mod Wiki

Revision Difference

NEXTBOT:OnEntitySightLost#528789

<function name="OnEntitySightLost" parent="NEXTBOT" type="hook"> <description>Called when the nextbot NPC loses sight of another Nextbot NPC or a Player. <note>This hook will only run after <page>NextBot:SetFOV</page> or other vision related function is called on the nextbot. See <page>NextBot:IsAbleToSee</page> for more details.</note> <note>This hook will only run after <page>NextBot:SetFOV</page> or other vision related function is called on the nextbot. See <page>NextBot:IsAbleToSee</page> for more details.</note> <bug issue="4734">This hook is not called in some scenarios.</bug>⤶ </description> <realm>Server</realm> <predicted>No</predicted> <added>2020.08.12</added> <args> <arg name="ent" type="Entity">the entity that we lost sight of</arg> </args> </function>