ScriptEvent:setSpotted

From Mod Wiki

Parameters

entity (cannot be null) spotter -- Entity responsible for having spotted this entity.

Result

None.

Supported By

idEntity

Functionality

Marks the entity as having been spotted. If the entity has never been marked before, it will call the callback OnSpotted, with the supplied entity as the parameter.