Crosshair
by Fucifer · in Torque Game Engine · 11/20/2006 (2:23 pm) · 2 replies
How do you set the position of crosshair? Can you enable the crosshair for 3rd person view, if so how can you do this. Thanks!
#2
1. How to get the crosshair to show in 3rd person?
2. Open engine/game/fps/guiCrossHairHud.cc.
3. Find this line:
if (!control || !(control->getType() & ObjectMask) || !conn->isFirstPerson())
4. Change it to this:
if (!control || !(control->getType() & ObjectMask))
5. Save and close.
6. Open project with your compiler.
7. Do Build/Clean then Build/Rebuild.
8. Launch Torque then mission.
9. Check to see if crosshair is there in 1st and 3rd person.
11/22/2006 (5:16 pm)
I found out how to get crosshair in 1st and 3rd views.1. How to get the crosshair to show in 3rd person?
2. Open engine/game/fps/guiCrossHairHud.cc.
3. Find this line:
if (!control || !(control->getType() & ObjectMask) || !conn->isFirstPerson())
4. Change it to this:
if (!control || !(control->getType() & ObjectMask))
5. Save and close.
6. Open project with your compiler.
7. Do Build/Clean then Build/Rebuild.
8. Launch Torque then mission.
9. Check to see if crosshair is there in 1st and 3rd person.
Torque Owner Ronald J Nelson
Code Hammer Games