Skip to content

$invoke

Hawkmax edited this page Mar 9, 2026 · 2 revisions

Description

The $invoke command simply invokes a function at Late Applying and swaps its return value with current member. That's it:)

Syntax

mem: { "key": "$ref$invoke:" } its possible but you need to use Command Batching in order to have a function pointer at member level
key: no implmentation

Param(s)

There are no parameters, just a function that is going to be invoked.

Example

Before Apply

{
	some_function: function() {
	    return "Hello World!";
	},
    some_function_result: "$ref$invoke:some_function",
}

After Late Apply

{
	some_function: function() {
	    return "Hello World!";
	},
    some_function_result: "Hello World!"
}

Author’s Recommendation: next read Create a Module

Clone this wiki locally