emit_event()
On this page
emit_event(name, data = {})Broadcast an exact script event name with additional context.
Returns: Null.
emit_event("signal_powered", {"source": "lever"})Use when event signal_powered to listen. A non-dictionary data value is stored under value. Guard against recursive broadcasts.
end_visual_script()#
end_visual_script(end_parent = false)Request termination of a running visual graph, optionally its calling graph.
Returns: Runtime result / null.
end_visual_script(false)This is not PCA’s return statement and does not break a normal action array.
end()#
end()Compatibility helper recognized by the VM.
Returns: Null.
end()It is not a quit command. In ordinary source, end is the block terminator; use return to leave a function and end_game for the gameplay end route. Do not use end() as a source-level termination statement.
