Game Development Community

Dedicated Server question

by John Esenger · in Torque X 3D · 06/28/2010 (12:19 am) · 2 replies

I have the demo version and I have a quick question when I try to change weapons in the scripts, it doesn't work I only have one weapon and this is on a dedicated server, but when I click Play all the weapons are in there...

In my gamecore.cs it says this

function GameCore::loadOut(%game, %player)
{
   //echo (%game @"\c4 -> "@ %game.class @" -> GameCore::loadOut");

   %player.setInventory(RocketLauncher, 1);
   %player.setInventory(RocketLauncherAmmo, %player.maxInventory(RocketLauncherAmmo));

   %player.setInventory(Rifle, 1);
   %player.setInventory(RifleAmmo, %player.maxInventory(RifleAmmo));

   %player.setInventory(GrenadeLauncher, 1);
   %player.setInventory(GrenadeLauncherAmmo, %player.maxInventory(GrenadeLauncherAmmo));

   %player.mountImage(RocketLauncherImage, 0);
}

#1
06/28/2010 (1:30 am)
You need to make sure all of the DSO files are removed, don't know about the demo but their should be a batch file to remove the DSO's (think of them as compiled versions of the scripts). Also, is this for Torque 3D or Torque X ?
#2
06/28/2010 (2:59 am)
well i tried deleting the dso.. no luck. this is for torque 3d