Game Development Community

Can't add a new weapons(head version)

by Martin Edmaier · in Torque Game Engine · 04/18/2002 (6:38 am) · 5 replies

Are some changes in the head version if I added to the game.cs some lines it would not compiled. What's the problem I can't see the weapon.... Can anybody help me?
In the Release 1.1.1 I see my weapon and can pick up!

Thanks a lot.

#1
04/19/2002 (10:23 am)
Can you give us a few more details... can't see what weapons? Item weapons on the ground, mounted in the hand? I can't think of anything added recently that would have affected the weapons.
#2
04/19/2002 (3:28 pm)
I can't see the weapon item on the ground, but I added my script "shotgun.cs" to the games.cs and add to the player.cs this lines: maxInv[ShotgunAmmo] = 100;
maxInv[Shotgun] = 1;
#3
04/19/2002 (9:36 pm)
Did you add it as an item in your mission?
You said you can't see it on the ground? Hum

new Item() {
position = "-135.758 -87.1377 94.3623";
rotation = "1 0 0 0";
scale = "1 1 1";
dataBlock = "Weaponname";
collideable = "0";
static = "1";
rotate = "1";
};
#4
04/20/2002 (8:31 am)
You should also check the console history; look for the line where your .cs file is executed and make sure there were no errors reported.

Does your new item show up in the mission editor weapon list?
#5
04/22/2002 (4:40 am)
No I can't see it in the mission editor list.
I think my shotgun.cs wouldn't compiled.