Adding new weapon to editor
by Ryan Zec · in Torque Game Engine · 10/09/2003 (6:44 pm) · 5 replies
I have all the file for a new weapon and put it where the rifle and crossbow. i made a .cs file for it. now i cant see the weapon in the level editor for torque (F11 then F4). how do i add it so i can see it in the worldeditor???
About the author
#2
10/10/2003 (2:49 am)
I dont see ./filename.cs name in game.cs?
#3
10/10/2003 (2:52 am)
Muahaha :P
#4
// Load up all datablocks, objects etc. This function is called when
// a server is constructed.
exec("./audioProfiles.cs");
exec("./camera.cs");
exec("./markers.cs");
exec("./triggers.cs");
exec("./inventory.cs");
exec("./shapeBase.cs");
exec("./item.cs");
exec("./staticShape.cs");
exec("./health.cs");
exec("./weapon.cs");
exec("./radiusDamage.cs");
exec("./rifle.cs");
exec("./crossbow.cs");
exec("./player.cs");
exec("./aiPlayer.cs");
the game.cs file should be under C:\torque\example\fps\server\scripts
10/10/2003 (4:48 am)
Add your *.cs file to the list in game.cs// Load up all datablocks, objects etc. This function is called when
// a server is constructed.
exec("./audioProfiles.cs");
exec("./camera.cs");
exec("./markers.cs");
exec("./triggers.cs");
exec("./inventory.cs");
exec("./shapeBase.cs");
exec("./item.cs");
exec("./staticShape.cs");
exec("./health.cs");
exec("./weapon.cs");
exec("./radiusDamage.cs");
exec("./rifle.cs");
exec("./crossbow.cs");
exec("./player.cs");
exec("./aiPlayer.cs");
the game.cs file should be under C:\torque\example\fps\server\scripts
Torque Owner Edward Smith
Silencersoft
this will make the TGE load up the file.
Its a good idea to trace back on things which are the same or a like.
EDIT: if you have done that then you go after F4->Shapes->ammo||Weapons->select