Ammo in Editor?
by Matthew Jones · in Torque Game Engine · 07/07/2002 (4:48 pm) · 1 replies
I built a pistol and did the basic change over from the rifle to the pistol(script). Everything works except the ammo. I have the datablock in my script but for some reason it won't show up in the world editor.
This is the code that comes out of the Pistol.cs file for the ammo.
Any help is appriciated.
Matt
This is the code that comes out of the Pistol.cs file for the ammo.
// Ammo Item
datablock ItemData(pistolAmmo)
{
// Mission editor category
category = "Ammo";
// Add the Ammo namespace as a parent. The ammo namespace provides
// common ammo related functions and hooks into the inventory system.
className = "Ammo";
// Basic Item properties
shapeFile = "~/data/shapes/pistol/ammo.dts";
mass = 1;
elasticity = 0.2;
friction = 0.6;
// Dynamic properties defined by the scripts
pickUpName = "pistol ammo";
maxInventory = 50;
};pretty just like the rifle in fact I am using the same model and all for TEMP. Is there another script I need to reference the AMMO. The gun loads and works So as far as the "Game.cs","Config.cs"and the "defaultbind.cs" I thought I did everything right?Any help is appriciated.
Matt
Torque Owner Matthew Jones