Game Development Community

Issues with Adding Weapon

by NA1234567 · in Torque Game Engine · 01/24/2004 (12:40 am) · 2 replies

Hello,

I'm having some issues adding adding a weapon model to torque.

The weapon works both as a static object and when I set it up as a weapon, but for the latter I have encountered a few issues which I am sure are easily addressed:

1) Is not actually being able to pick the weapon up.

2) There is also an issue with the weapon's "rotation radius" - it rotates on an edge rather than the centre - how is this adjusted?

Thanks

#1
01/24/2004 (2:13 am)
Raymond,

It looks like somehow the exporter has screwed up.
Make sure you have no stray vertexes, objects, or nodes elsewhere in your model.

Also, have you linked any of the vertexes with any of the bones?
(Not quite sure if thats required of not)
#2
01/24/2004 (3:44 am)
Problem one = You haven't got it added to inventory i'm guessing!

In Player.cs under datablock PlayerData(PlayerBody)

maxInv[DeagleAmmo] = 100;
maxInv[DeagleRifle] = 1;


(you should find find similar things to these written @ the bottom of that datablock.) Obviously chnage the names so they are correct to how your datablock for your weaponimage is setup.


As for the rotation being off, thats kinda weird, have you tried moving everything to be around the origin in milkshape (as i can see its currently not @ the origin)