Skip to content

Run Global Script

Run Global Script

Executes a global script defined in the database, running inline and blocking until complete.

Properties

System

Name Explanation Type
Global Script The global script to execute from the database. Number

Examples

Run Global Script by Index

Executes global script 0 from the database, running it inline and blocking until complete.

run_global_script(0);
{"Data":{"ScriptIndex":0,"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.GlobalScriptCommand"}

Run a Different Global Script

Executes global script 5 from the database.

run_global_script(5);
{"Data":{"ScriptIndex":5,"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.GlobalScriptCommand"}