Difference between revisions of "ObjVar"
(Created page with "== Object Variables == Object Variables are saved when a backup is performed. This means that after a full restart of the server, the GameObj will return to the state it was i...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
aUserNum = gameObj:GetObjVar("SomeObjVarNameIChose") | aUserNum = gameObj:GetObjVar("SomeObjVarNameIChose") | ||
− | You can save [[Number | Numbers]], [[String | Strings]], [[Bool | Bools]], and [[Table | Tables]] in an ObjVar and can specify any String name of your choice. | + | You can save [[Number | Numbers]], [[String | Strings]], [[Bool | Bools]], [[GameObj | Game Objects]], [[Loc | Loc Vectors]], [[DateTime | DateTime Objects]], [[TimeSpan| TimeSpan Objects]], and [[Table | Tables]] in an ObjVar and can specify any String name of your choice. |
+ | [[Category:Architecture]] |
Latest revision as of 17:20, 1 November 2016
Object Variables
Object Variables are saved when a backup is performed. This means that after a full restart of the server, the GameObj will return to the state it was in during the backup.
gameObj:SetObjVar("Name", "Larry") name = gameObj:GetObjVar("Name")
gameObj:SetObjVar("SomeObjVarNameIChose", 53.2) aUserNum = gameObj:GetObjVar("SomeObjVarNameIChose")
You can save Numbers, Strings, Bools, Game Objects, Loc Vectors, DateTime Objects, TimeSpan Objects, and Tables in an ObjVar and can specify any String name of your choice.