Garry's Mod Wiki

Garry's Mod Wiki

  ENTITY:OnStateChange( number oldState, number newState )

Description

Called by the engine when NPC's state changes.

This hook only exists for ai type SENTs.

Arguments

1 number oldState
The old state. See NPC_STATE enum.
2 number newState
The new state. See NPC_STATE enum.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...