GetDatablock
by Jerane Alleyne · in Torque Game Engine · 10/06/2002 (1:17 pm) · 2 replies
Had a quick question regarding this command...
Can I use this for retrieving any information in a datablock? For example, I'm working on an inventory system, and want it to display things like a weapon's mass ammo and so on, so I just wanted to know if this is what I would use for that purpose (i.e. %obj.getdatablock.mass() or %obj.getdatalbock.shapefile(), and %obj is the Datablock ID).
Just wanna see if I'm on the right track :)
Thanks!
Can I use this for retrieving any information in a datablock? For example, I'm working on an inventory system, and want it to display things like a weapon's mass ammo and so on, so I just wanted to know if this is what I would use for that purpose (i.e. %obj.getdatablock.mass() or %obj.getdatalbock.shapefile(), and %obj is the Datablock ID).
Just wanna see if I'm on the right track :)
Thanks!
Associate Stefan Beffy Moises
.getDatablock().
with brackets... ;)