Garry's Mod Wiki

ENTITY:TranslateActivity

  number ENTITY:TranslateActivity( number act )

Description

Called by the engine to alter NPC activities, if desired by the NPC.

This hook only exists for ai type SENTs.

Arguments

1 number act
The activity to translate. See ACT enum.

Returns

1 number
The activity that should override the incoming activity. See ACT enum.

Do not return anything to not override.