Garry's Mod Wiki

ai.GetScheduleID

  number ai.GetScheduleID( string sched )

Description

Translates a schedule name to its corresponding ID.

Arguments

1 string sched
Then schedule name. In most cases, this will be the same as the Enums/SCHED name.

Returns

1 number
The schedule ID, see Enums/SCHED. Returns -1 if the schedule name isn't valid.