Game Development Community

Player, AI or Vehicle names showing through DTS buildings

by Jules · in Torque 3D Professional · 10/04/2010 (9:50 am) · 2 replies

Hi, I'm trying to get an element of stealth in my game where if you are hiding behind a wall, no one can see you. It's a bit difficult to do this when you have a green neon sign with your name above your head showing where you are and it shows straight through DTS shapes.

Ideas on how to prevent this showing through would be appreciated as I'm chasing my tail at the moment. Maybe a visible line of sight, or remove it completely but only when your target is pointing over the player/AI/vehicle?

Defeats the object of having a radar then :) but it would be good to know the players name before you kill them lol

Thanks.

#1
10/04/2010 (8:24 pm)
I had *thought* that the GuiShapeNameHud already did a LOS check to prevent that but I see it only does so for Terrain, Interiors, and ShapebaseObjects -- perhaps you could add TSStatics to the mask? If, that is, your shapes in question are TSStatics?
#2
10/04/2010 (8:30 pm)
Michael - good call, It didn't cross my mind. Yeah shapes are TSStatics.