Game Development Community

Creating a new dynamic variable?

by Eric Rogers ER · in General Discussion · 06/26/2008 (3:34 pm) · 2 replies

I was wondering how to create a new dynamic variable in the Torque Game Engine 1.5.2.
Any help is appreciated!

#1
06/26/2008 (3:37 pm)
Just assign to a property that doesn't exit yet.

%MyObject.thisIsANewDynamicVariable = "foobar";

Otherwise, you can also create dynamic variables through the mission editor using the world editor inspector view.
#2
06/26/2008 (3:41 pm)
Whoops, I misread this, I thought you said global variable. Rene got the real answer :D