Game Development Community

How do I find out Who fired something?

by Vince Gee · in Torque Game Engine · 04/08/2005 (8:51 pm) · 1 replies

The part that is giving me trouble is that I'm trying to figure out who fired the crossbow, so you have the following vars

function CrossbowImage::onFire(%this, %obj, %slot)

%obj does give me an index and I saw somewheres else that this is the key to the holders object, but when I call gettaggedstring it crashes. So I assume I'm doing something wrong..... so how do I find out who caused the onfire event?

Vince

#1
04/08/2005 (8:55 pm)
Ok, nm, found it. it is %obj.client

Sorry bout that