Garry's Mod Wiki

NPC:GetIdealActivity

  number NPC:GetIdealActivity()

Description

Returns the ideal activity the NPC currently wants to achieve.

By default, base NPCs will automatically attempt to play a sequence bound to the ideal activity. To prevent ideal activity from overriding NPC's active sequence, set this to ACT_DO_NOT_DISTURB.

Returns

1 number
The ideal activity. ACT enum.