Game Development Community

Weapon does not show up in game

by Ferris State University (#0003) · in Torque Game Engine · 04/21/2006 (8:17 am) · 3 replies

Allrighty, I can't seem to figure this one out.

I have a weapon model, that exported fine, it show up in showtool, and also As a spinning object on the map (replaced the crossbow in starter.fps) However, the weapon does not show up on the player model, nor does it fire (shouldn't it even if the gun is invisible?).


Any ideas?

About the author

Recent Threads


#1
04/21/2006 (8:27 am)
Weapons need to be defined and implemented in a few different places. I take it you're only trying to replace the crossbow as opposed to creating a new instance of a weapon. If this is the case, make sure the crossbow script is refering to the correct dts name. However, from what you've written it sounds like it could be a problem with your model. Make sure all the appropriate nodes are there and named correctly. This explains why it appears as an 'item' (the spinning object) and in showtool but not as a WeaponImage / ShapeBaseImageData object. Lastly, check the console for relevant errors.
#2
04/21/2006 (8:44 am)
Allright, I just found the error. I started renaming the funcitons in the Crossbow.cs, and missed one T_T


But now I have a new problem, my weapon is backwards ( I knew that was going to happen) and for some reason, its mounted to the orc's head.


I've tried rotating the gun around in max, but it still exports backwards. Hmm...
#3
04/21/2006 (9:42 am)
From memory I think you have to rotate the bounding box and not the gun itself. Make sure your script is mounting to the right mount point with regards to the head issue. Torque is very anul about it's models and using max can be a nightmare till you work it all out :(