Game Development Community

Turning off weapon render in first person

by Derk Adams · in Torque Game Engine · 11/16/2004 (11:31 am) · 3 replies

Greetings,

Well the title kind of says it all. How can I turn of weapon rendering in first person? Either script or engine will work for me since I want it disabled for all objects.

Thanks.

#1
11/16/2004 (11:36 am)
You could change the eye offset in your image datablock to be out side of the player's view.
#2
11/16/2004 (11:59 am)
Josh,

Nope. I have multiple weapons mounted on the player and the projectile fires from eye offset position (which is "0 0 0" for all my weapons). If I move them off the screen, the projectile comes from that off-screen position. Not good.

Thanks.
#3
11/18/2004 (9:01 am)
Greetings,

Found my answer by accident. It turns out that the preference $pref::Player::renderMyItems controls the first person rendering of items. Just set it to 0 (in two places).

Thanks.