SetIncludedVariable()
On this page
SetIncludedVariable(script_id: String, variable_name: String, value: Variant) -> boolWrite router-owned per-script shared data.
Returns: Boolean; requires an existing script ID and nonempty name.
SetIncludedVariable("utility_gd", "last_total", 15)Action()#
Action(action_type: String, properties: Dictionary = {}) -> VariantRun an exact shared action ID with a properties dictionary.
Returns: That action’s result.
await Action("CameraShake", {"duration": 0.3, "power": 0.1})No automatic try/catch behavior is added. The named wrappers use this same route.
RunVisualGraph()#
RunVisualGraph(graph: Dictionary, execution_context: Dictionary = {}) -> VariantExecute graph data through the visual runtime.
Returns: Graph return value, where provided.
await RunVisualGraph({"nodes": [], "edges": []}, {})This accepts a graph dictionary, not a saved visual-script ID.
EmitEvent()#
EmitEvent(event_name: String, event_context: Dictionary = {}) -> voidBroadcast an exact event name with merged caller context and additional data.
Returns: Void.
await EmitEvent("OnCustomEvent", {"reason": "signal_powered"})For native shared listeners, subscribe to OnCustomEvent and filter a discriminator in its context.
