Game Development Community

Weapon

by gillian anderson · in Torque Game Engine · 07/24/2006 (4:06 pm) · 4 replies

How do you use a weapon but not render it in 1st person pov?

thanks

About the author


#1
07/24/2006 (11:31 pm)
In client\prefs.cs make this adjustment:
$pref::Player::renderMyItems = "0";
#2
07/26/2006 (3:34 am)
Thank you very much, perfect

just some info for anyone:
(i got missles to fire right into the center of the screen where the crosshairs are.

in your missle script eg rocketlauncher.cs using
initialposition = %obj.client.player.getEyeTransform(); // getEyePoint() will work as well.
#3
07/26/2006 (5:03 am)
Then your projectile is sent from the eyeNode, not from the muzzlePoint of the weapon.
#4
07/28/2006 (2:33 am)
That's correct. if you look in 3rd pov the missile comes out of his head which looks odd i admit (but its going so fast you don't even notice it) but makes for accurate shooting because it goes right through the crosshairs, whereas from the muzzlepoint, the missile is always travelling underneath it.