Game Development Community

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!

#1
10/06/2002 (1:24 pm)
Yes, that should work! But you should use
.getDatablock().
with brackets... ;)
#2
10/06/2002 (1:28 pm)
Ah, gotcha ;D

Thanks!