Game Development Community

finding an object in a ray

by mark romero · in Torque Game Engine · 11/04/2009 (2:41 pm) · 1 replies

in my game, you have to find three bombs in order to blow up the enemy base. it works fine, but players seem to have trouble finding the bombs, so now i want to create a function that tells them where the bombs are generally. as of now, i've got my variables, $bomb1, $bomb2, and $bomb3 to determine if they are even on the field, or if they've been picked up. the problem is i dont know how to cast a ray that checks for an item from the player. in the mission, the bombs are called bomb01, bomb02 and bomb03. code would be really helpful

#1
11/04/2009 (2:42 pm)
i should also mention i only want tell tell them "the bomb is to your left" or in another direction like that, not very detailed so they have to look a bit harder