Skip to content

Save Context Unique ID

Save Context Unique ID

Saves the unique ID of the current context object to a variable for later reference.

Properties

System

Name Explanation Type
Local Whether to store the unique ID in a local variable. Toggle
Variable Index The index of the variable to store the unique ID in. Number

Examples

Save the Context Unique ID to Global Variable 0

This saves the unique ID of the current context object to Global Variable 0.

$gv[0] = save_context_unique_id();
{"Data":{"Index":0,"IsLocal":false,"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.UserInterface.SaveUniqueIDToVariableCommand"}

Save the Context Unique ID to Local Variable 3

This saves the unique ID of the current context object to Local Variable 3.

$lv[3] = save_context_unique_id();
{"Data":{"Index":3,"IsLocal":true,"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.UserInterface.SaveUniqueIDToVariableCommand"}