2 probelms with weapons not find awnser in search or my outdated books : )
by Tom Timothy · in Torque Game Engine Advanced · 08/05/2010 (4:03 am) · 2 replies
First adding new weapons in game.
Ive added my .cs file in right spot
I have also gone to \game\scriptsAndAssets\server\scripts in the game.cs and added exec for my .cs what am i missing? to have my weapon show up in world creator shapes weapons?
Second I need to change the code so any time I run over a new weapon it unmounts current weapon and mounts new weapon so you only have newest weapon you touched any ideas how I would get that going
As always Thank you for your time reading my post.
Ive added my .cs file in right spot
I have also gone to \game\scriptsAndAssets\server\scripts in the game.cs and added exec for my .cs what am i missing? to have my weapon show up in world creator shapes weapons?
Second I need to change the code so any time I run over a new weapon it unmounts current weapon and mounts new weapon so you only have newest weapon you touched any ideas how I would get that going
As always Thank you for your time reading my post.
#2
looking into how the onPickup is handled now thanks for getting me a running start
08/06/2010 (4:41 am)
Well the first issue I have no idea come home from work today open the notepad file close it after searching for some mistake no changes and it works now. looking into how the onPickup is handled now thanks for getting me a running start
Associate Michael Hall
Distracted...
2) Look at how item/weapon onPickup is handled. You'll have to circumvent the item->inventory handling and force an onUse/mount of the relevant weapon upon collision with it.