Garry's Mod Wiki

NEXTBOT:OnEntitySight

  NEXTBOT:OnEntitySight( Entity ent )

Description

Called when the nextbot NPC sees another Nextbot NPC or a Player.

This hook will only run after NextBot:SetFOV or other vision related function is called on the nextbot. See NextBot:IsAbleToSee for more details.

Arguments

1 Entity ent
the entity that was seen