Can't exec in a datablock..doh!
by Kevin Johnson · in Torque Game Engine · 11/11/2004 (6:26 pm) · 6 replies
Is there like an include or something?
I wanna keep simular player data (from datablock)
in a common file.. is that possible?
I wanna keep simular player data (from datablock)
in a common file.. is that possible?
#2
11/14/2004 (10:19 pm)
Kool..thanx (almost like inheritence eh?)
#3
11/15/2004 (10:22 am)
Almost, but not quite. ;)
#4
11/15/2004 (8:32 pm)
Ben, can you explain the namespace (event callback) hierarchy for datablocks again? I remember reading this in a doc recently, but can't find it anywhere in the docs anymore.
#5
11/16/2004 (6:37 pm)
I don't understand... The rules for datablocks are pretty much the same as for everything else.
#6
11/18/2004 (9:30 am)
Basically I need to create unique characters that respond to their own events ( not all objects created with the same datablock), but will the datablock inheritance model pertain to datablock events as well?
Associate Kyle Carter
datablock ShapeBaseData(BlockA) { // Some fields... foo = 1; bar = 3; zap = 7; } datablock ShapeBaseData(BlockB : BlockA) { // First BlockA's fields get set here... // Then your fields take effect zap = 9; sing = 2; }So in this example, BlockB would have foo=1, bar=3, zap=9, sing=2.