Garry's Mod Wiki

ENTITY:OnChangeActivity

  ENTITY:OnChangeActivity( number act )

Description

Called when the NPC has changed its activity.

This hook only works for ai type entities.

Arguments

1 number act
The new activity. See ACT enum.