Rest
...argumentTypes: AReadonly
argumentRest
...args: AVOptional
confirmerRest
...args: AVOptional
deitiesOptional
exampleRest
...args: AVReadonly
flagsRest
...args: AVRest
...args: AVOptional
preRest
...args: AVReadonly
usabilityRest
...args: AVRest
...args: AVOptional
location: Partial<IActionTargetAdjacent>Rest
...args: AVRest
...args: AVRest
...args: AVOptional
targetEntity: default<unknown, number, EntityReferenceTypes, unknown> | IActionTargetEntityRangedRest
...args: AVRest
...args: AVRest
...args: AVChecks if a flag is set
Flag to check
Add a can use handler for this action.
This determines if an action is usable or not
Rest
...args: AVAdd an asynchronous "confirmer" handler to this action.
When an entity attempts to execute an action, the confirmer is the second handler called (after the pre-execution handler). Confirmer handlers are executed on the client-side only.
Note: If you use actionApi.addItems
in a pre-execution handler, a confirmation interrupt will already be shown.
In that case, a confirmer is unnecessary.
false
to cancel the execution of the action.
Rest
...args: AVAdd an example to this action.
Rest
...args: AVSets additional flags for this action.
Rest
...flags: AllowPacketConcurrency[]Add a handler for this action.
Handlers are executed on both the client-side and the server-side.
Add a handler that is called when it's executed while not being usable
Handlers are executed on both the client-side and the server-side.
Add a "pre-execution" handler to this action.
When an entity attempts to execute an action, the pre-execution handler is the first handler called. Pre-execution handlers are executed on the client-side only.
false
to cancel the execution of the action.
Rest
...args: AVSets the entities that can use an action.
Rest
...entityTypes: E2Sets additional times the action can be used in.
Rest
...usabilities: ActionUsability[]Generated using TypeDoc
Check if the action has setup CanUse logic