Garry's Mod Wiki

Revision Difference

NEXTBOT:OnEntitySight#528788

<function name="OnEntitySight" parent="NEXTBOT" type="hook"> <ishook>yes</ishook> <description>Called when the nextbot NPC sees 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 was seen</arg> </args> </function>