Datablock copying trouble
by Michael Bacon · in Torque Game Engine · 10/07/2007 (3:07 am) · 0 replies
Okay, so I can copy information contained within datablocks like this:
recently I extended my AIPlayer to have its own datablock (aptly named AIPlayerData).
The problem is that my datablock copies stopped working between PlayerData types and AIPlayerData types.
... no longer works. I know their not the same type but they are the same species (AiPlayerData obviously inherits from PlayerData). So why doesn't it just copy the members that PlayerData contains?
Where exactly is this procedure done so that I can rectify the situation?
Am I just doing something wrong?
Just to note* I already have a work-around but I'd like this to work for real. Currently I simply copied all of the info from my original player datablock to the ai player datablock.
datablock PlayerData(MyPlayer)
datablock PlayerData(AiPlayer : MyPlayer)recently I extended my AIPlayer to have its own datablock (aptly named AIPlayerData).
The problem is that my datablock copies stopped working between PlayerData types and AIPlayerData types.
datablock PlayerData(MyPlayer)
datablock AIPlayerData(AiPlayer : MyPlayer)... no longer works. I know their not the same type but they are the same species (AiPlayerData obviously inherits from PlayerData). So why doesn't it just copy the members that PlayerData contains?
Where exactly is this procedure done so that I can rectify the situation?
Am I just doing something wrong?
Just to note* I already have a work-around but I'd like this to work for real. Currently I simply copied all of the info from my original player datablock to the ai player datablock.