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.
In the Release 1.1.1 I see my weapon and can pick up!
Thanks a lot.
About the author
#2
maxInv[Shotgun] = 1;
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
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";
};
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
Does your new item show up in the mission editor weapon list?
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
I think my shotgun.cs wouldn't compiled.
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.
Torque Owner Tim Gift