Garry's Mod Wiki

ENTITY:RunAI

  boolean ENTITY:RunAI()

Description

Called from the engine every m_flNextDecisionTime in seconds. This interval changes depending on NPC's Efficiency. Returning true inside this hook will allow CAI_BaseNPC::MaintainSchedule to also be called.

This hook only exists for ai type SENTs.

Returns

1 boolean
true to run engine schedules