Game Development Community

Popup Targets

by Katrina Rose · in Torque Game Engine · 08/11/2004 (9:52 am) · 2 replies

I have had one of our artists make me some popup targets and I am trying to get them to regester a hit when the bullet contacts them. My problem is that the targets oncollision code does not detect the bullet, and only detects the player. I also tried to make the target an AIPlayer, but this is very troublesome, because the model does not have mount nodes, and I don't want to redoo all my great AI coding. Is there any way I can make these popup targets objects that detect the bullet from any one of our guns?

Thanks in Advance for your help.

Marrion Cox

#1
08/11/2004 (12:01 pm)
I seem to remember a damage function in script. It's even called damage. Do a search for it in player.cs and crossbow.cs, and any others that might be related.
#2
08/11/2004 (2:56 pm)
The projectile should know that it hit something, but not the other way around... And note this is only if there is a LOSCol mesh for your object, which actually I have not been able to make work.

All of the damage stuff is done in script. Do your debug output in its onDamage function and it should work.

-s