Weapon Firing problem
by ken Ng · in Technical Issues · 08/14/2006 (8:38 am) · 1 replies
I recently started to use this program so please forgive if there is any mistakes.
i am using the 3D Game Programming All in One book as a reference
I am having a problem with the gun firing. When i use
parent::onAdd( %this, %obj );
%obj.mountImage( rifleImage, 0 );
%obj.setImageAmmo( 0, 1 );
at the player.cs file the weapon works fine. but when i take that away and let the player pick up the weapon when he walks over it and the ammo the weapon won't fire. from what i know the part that controls all these is the rifle.cs file in the server folder or server/script folder and the files that are involved are item.cs, inventory.cs and weapon.cs. i am currently lost in those 4 files.
i have tried copying and editing the same files that are on the CD itself for use but it still has the same problem and there is no error when i open the console as well. Can anyone help me with this or point me to a link that can solve this problem??? please dont send links to the tdn or need tdn login as i dont have the permission required. thanks in advance for any help...
i am using the 3D Game Programming All in One book as a reference
I am having a problem with the gun firing. When i use
parent::onAdd( %this, %obj );
%obj.mountImage( rifleImage, 0 );
%obj.setImageAmmo( 0, 1 );
at the player.cs file the weapon works fine. but when i take that away and let the player pick up the weapon when he walks over it and the ammo the weapon won't fire. from what i know the part that controls all these is the rifle.cs file in the server folder or server/script folder and the files that are involved are item.cs, inventory.cs and weapon.cs. i am currently lost in those 4 files.
i have tried copying and editing the same files that are on the CD itself for use but it still has the same problem and there is no error when i open the console as well. Can anyone help me with this or point me to a link that can solve this problem??? please dont send links to the tdn or need tdn login as i dont have the permission required. thanks in advance for any help...
Torque Owner AndrewOsborne