Skip to content

CallStateAction

Realm: SERVER (supported usage).

actor:CallStateAction(state_name, func_name, ...)

Calls a registered callback with this actor and extra arguments; nil state_name uses the current state.

Source: lua/background_npcs_core/actor/components/sh_state.lua.

Realm reference.