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
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);
}About the author
Torque Owner Jules
Something2Play