Skip to main content

run_scripts

Function run_scripts 

Source
pub fn run_scripts(
    world: &mut World,
    runtime: &mut ScriptRuntime,
) -> ScriptReport
Expand description

Runs every enabled script once against this tick’s frozen events, submits the commands they produced as one deferred batch, and returns those commands so a tool can show the traffic. A script that produces a malformed command has it dropped.