private static void OnCreatureHeartbeat() { string script = GetBehaviourScript(OBJECT_SELF); if (string.IsNullOrWhiteSpace(script)) { return; } IAIBehaviour behaviour = GetAIBehaviour(script); behaviour.OnHeartbeat(OBJECT_SELF); }