Appearance
K.Action
Functions
K.Action.Define
lua
K.Action.Define(name: string, options: any, callback: any): ActionK.Action(name, options?, fn) is the same as K.Action.Define(name, options?, fn). On clients, K.Action(name) returns the action to Call or Fire.
K.Action.Get
lua
K.Action.Get(name: string): ActionK.Action.Exists
lua
K.Action.Exists(name: string): booleanK.Action.Run
lua
K.Action.Run(player: Player, name: string, ...: any): (boolean, any)Server: runs an action for a player from server code.
K.Action.Call
lua
K.Action.Call(name: string, ...: any): (boolean, any)Client: asks the server and waits. Returns (succeeded, result or reason).
K.Action.Fire
lua
K.Action.Fire(name: string, ...: any)Client: asks the server without waiting.
Methods on action
action:Before
lua
action:Before(callback: (any) -> (), priority: number?): () -> ()action:After
lua
action:After(callback: (any) -> ()): () -> ()action:Use
lua
action:Use(callback: (any, () -> ()) -> (), priority: number?): () -> ()action:Override
lua
action:Override(callback: (any, ...any) -> any)action:Run
lua
action:Run(player: Player, ...: any): (boolean, any)Runs the action for player from server code, with the same hooks.
action:Call
lua
action:Call(...: any): (boolean, any)Asks the server to run the action and waits. Returns (succeeded, result or reason).
action:Fire
lua
action:Fire(...: any)Asks the server to run the action without waiting for the answer.
Generated from
src/Corode/Action.luau.
