Generate Datablock dynamiclly in script
by Wenfeng Hu · in Torque Game Engine · 03/29/2008 (6:03 pm) · 0 replies
Is it possible to create a new datablock on the fly in script? I have gone through all the posts related to this topic and it seems possible. But I can not let those examples to work. Even the simplest code can not work:
eval("datablock PlayerData(UniquePlayer) {};");
console always says:parse error.
This problem get me!Who can help me?
Thanks!
eval("datablock PlayerData(UniquePlayer) {};");
console always says:parse error.
This problem get me!Who can help me?
Thanks!