Game Development Community

Crossbow suddenly damaged

by Dennis Lamers · in Torque Game Engine · 09/29/2009 (3:49 pm) · 5 replies

Hi,

I was working on my new game. Suddenly I started the game and I didn't had my crossbow. I was confused, and I want the crossbow back to carry it in my game. I can't work further, since I can't spawn the crossbow in MissionEditor.

#1
09/30/2009 (12:38 pm)
Did you exec the crossbow.cs, and you're sure you have the crossbow file with the dts files and all in your game? Also make sure you have crossbow defined in your player.cs.
#2
09/30/2009 (1:09 pm)
Oh, I think I removed the crossbow spawn out of my player.cs. Because I wanted something that the players have to pick up their weapons in the city.
#3
09/30/2009 (1:49 pm)
Well there you go, let us know if you still can't get it.
#4
09/30/2009 (5:07 pm)
Quote:
I think I removed the crossbow spawn out of my player.cs.
If you did this in player.cs what you actually did was remove the crossbow from allowable inventory -- although that wouldn't affect being able to spawn one in the world, you just wouldn't be able to pick it up. It's in game.cs that the player is given the crossbow when he/she spawns.

Double check for error messages in the console: syntax errors, parse errors, advanced script errors, failure to preload, etc., etc.
#5
09/30/2012 (2:37 am)
Hey do you tell me how to add weapons to player hand