Save Unique ID

Save Unique ID

Save Unique ID saves the Unique ID of the object containing the command to a Variable. In most cases, this will likely be either an Entity or User Interface.

Note: This is often used in conjunction with Save Value to access data within the engine.

Examples

Save Unique ID to Global Variable 0

This sets the Unique ID of the object to Global Variable 0.

{"Data":{"Index":0,"IndexEnd":null,"IsLocal":0,"IsOperandReference":0,"IsReference":0,"OperandGlobalIndex":null,"OperandLocalIndex":null,"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.Data.SaveUniqueIDCommand"}