Save Entity Unique ID
Save Entity Unique ID¶
Saves the unique ID of an entity to a variable for later reference.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Destination Variable | The variable where the entity's unique ID will be stored. | Variable or Value |
| Entity | The entity whose unique ID will be saved. | Actor Reference |
Examples¶
Save Entity 0 Unique ID to Global Variable 0¶
This saves the Unique ID of entity 0 into Global Variable 0.
{"Data":{"Result":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Target":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"IsEntity":1,"IsIdentifiedByUniqueID":0,"IsPartyMember":0,"IsSelf":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Entity.EntitySaveUniqueIDCommand"}
Save Self Unique ID to Global Variable 0¶
This saves the Unique ID of the calling entity into Global Variable 0.
{"Data":{"Result":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"","VariableIndex":0,"Metadata":null},"Target":{"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"","VariableIndex":0,"Metadata":null},"IsEntity":0,"IsIdentifiedByUniqueID":0,"IsPartyMember":0,"IsSelf":1,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Entity.EntitySaveUniqueIDCommand"}