Is it possible to create a local variable from code at runtime? Not setting the value, but defining the name and object type? Basically I have a combination of scripts and Game Creator components that together control basic gameplay functionality like opening doors and drawers, enter/exit vehicles, attach/detach from moving platform etc. They keep track of state etc by setting local variables on the game objects in question.
Instead of having to add the local variables game component and setting up the different named variables with type in the editor, I would like to do it at runtime. This way I do not have to go back to each single component if I have to make a change, or add some variable.
If it's not feasible then don't stress it, I'm just wondering if it can be done at runtime, and a nudge in the right direction of where to find some code to use as a base.
Customer support service by UserEcho