Hi everyone,
I am developing some unique functionality with my SimObjects, and I am in need of custom variables that behave like L:Vars, (accessible to SimConnect, XML model behavior code, and in-game dialog interface JS/HTML code), but are still unique to each SimObject.
For example, I need a custom variable on a SimObject, let’s call it “MyVar”, that will trigger a specific animation. It needs to be a unique variable to that SimObject, so that, if I spawn 2 instances of the SimObject, their MyVars are unique.
I can utilize L:Vars, however, their global nature would apply to all SimObjects that employ them. For example, if I tied a L:Var to triggering SimObject’s certain animation, and if I set that LVar to true, all the SimObject instances would have the animation triggered.
I’ve found some promising material in the SDK reference for Reverse Polish Notation, especially “Z var”, which is described as a “Object sim’s scoped Custom Sim var”, but I think it applies only to RPN code, and is not exposed to SimConnect.
Any suggestions or insight into this would be appreciated!
Mitch
TerraBuilder Team