Game Development Community

Get Collision Target's Datablock *SOLVED

by Jacob Williams · in Torque Game Engine · 12/10/2008 (4:58 pm) · 1 replies

Hey guys,
There is probably a simple solution to this problem, but I can't seem to figure it out. In the CrossbowProjectile::onCollision Function, how can I access the target's datablock. For instance, when a crossbow bolt hits a target i want to access that target's datablock like I would a players. For example, if I wanted to get a players max speed, i would use %player.getDataBlock().maxForwardSpeed, but how can I get the target of a collision's speed?

Thanks,
-Jacob