datablocks
by Hadoken · in Torque Game Engine · 04/15/2003 (4:03 am) · 1 replies
I'm still a bit confused about datablocks, what i got is that they are like templates which are loaded when objects are created, and each object is assigned its datablock. Then i guess that during the game the values in these datablocks can be modified.
My weekly silly question: if i have 2 objects which start with the same datablock, can i modify their values separately, or changing data for object 1 will automatically change data for object 2?
And what happens when i save objects with %obj.save(%filename) after changing values in their datablocks? Am i saving the original datablock or the modified one?
Any reply to this would help me a lot, thanks.
My weekly silly question: if i have 2 objects which start with the same datablock, can i modify their values separately, or changing data for object 1 will automatically change data for object 2?
And what happens when i save objects with %obj.save(%filename) after changing values in their datablocks? Am i saving the original datablock or the modified one?
Any reply to this would help me a lot, thanks.
About the author
Torque Owner Injae Jeong
As for second question, since you seem to be saving an object, the datablock's values shouldnt be affected.
I am a newbie too. Hope the explaination is right and helps you. This is my first reply after scores of questions :)