Adding more actions to the buildings
by Dhruv Thukral · in RTS Starter Kit · 11/07/2005 (10:25 pm) · 2 replies
Hi, I just started messing around with the Resource pack, and it's great! My question is how do I add more than 3 actions to the building's menu? For example, for the barracks, if I want to be able to train more than just the 3 units (like 4 or 5), how do I add those? I tried adding
$BD_ActionIcon[3,0] = $Gui::resourceImagePath @ "peon";
to the client/scripts/buildings.cs file, and editing the $Gui::BuildingActionCount so it was
$Gui::BuildingActionCount = 4;
but it didn't work. I also added "villager" to the list of hires:
$BD_ActionType[1] = "Hire bonecracker shocker rifleman villager";
but I can't get any more than 3 units to be "trained" in the building's menu. What else do I need to do?
$BD_ActionIcon[3,0] = $Gui::resourceImagePath @ "peon";
to the client/scripts/buildings.cs file, and editing the $Gui::BuildingActionCount so it was
$Gui::BuildingActionCount = 4;
but it didn't work. I also added "villager" to the list of hires:
$BD_ActionType[1] = "Hire bonecracker shocker rifleman villager";
but I can't get any more than 3 units to be "trained" in the building's menu. What else do I need to do?
#2
= "Hire bonecracker shocker rifleman"; // only the "hire" portion is implemented
if only the Hire portion is implemented, adding more units to it wont work will it?
12/09/2006 (11:15 am)
Maybe im wrong (i dont use that code anyway, but i did download it), the code says:= "Hire bonecracker shocker rifleman"; // only the "hire" portion is implemented
if only the Hire portion is implemented, adding more units to it wont work will it?
Torque 3D Owner Stephen Zepp