How do I make a units commandset switch to a differant one?
Comandset Switching
Started by Slye_Fox, Jul 04 2004 11:48 AM
8 replies to this topic
#2
Posted 04 July 2004 - 09:22 PM
Use the GLA Fake Buildings Logic.
In the Object Dozer/Worker
And in Upgrade.ini
Replace as necessary.
EDIT: If you only want it one way then eliminate one of the Upgrades (ie going back to real)
In the Object Dozer/Worker
Behavior = CommandSetUpgrade ModuleTag_14 TriggeredBy = Upgrade_GLAWorkerFakeCommandSet RemovesUpgrades = Upgrade_GLAWorkerRealCommandSet CommandSet = GLAWorkerFakeBuildingsCommandSet End Behavior = CommandSetUpgrade ModuleTag_15 TriggeredBy = Upgrade_GLAWorkerRealCommandSet RemovesUpgrades = Upgrade_GLAWorkerFakeCommandSet Upgrade_GLAWorkerRealCommandSet CommandSet = GLAWorkerCommandSet End
And in Upgrade.ini
Upgrade Upgrade_GLAWorkerFakeCommandSet Type = OBJECT BuildTime = 0.0 BuildCost = 0 ButtonImage = SUFakeToggle End ;---------------------------- Upgrade Upgrade_GLAWorkerRealCommandSet Type = OBJECT BuildTime = 0.0 BuildCost = 0 ButtonImage = SUWorker End
Replace as necessary.
EDIT: If you only want it one way then eliminate one of the Upgrades (ie going back to real)
Edited by AdmiralGT, 04 July 2004 - 09:23 PM.
#5 Guest_ImmoMan_*
Posted 05 July 2004 - 12:55 PM
Don't forget that to be able to build upgrades, you need a ProductionUpdate module.
#7 Guest_ImmoMan_*
Posted 05 July 2004 - 02:07 PM
Just stick
somewhere on the unit that has the switch.
Behavior = ProductionUpdate Whatever End
somewhere on the unit that has the switch.
#9
Posted 05 July 2004 - 05:02 PM
That worked,
Now for the second one.
I have a plane with two weapons, both need reloading at airfield.
They use the weapon switch logic. but when one ammo runs out it does not go back to the airfield. What do i do?
Now for the second one.
I have a plane with two weapons, both need reloading at airfield.
They use the weapon switch logic. but when one ammo runs out it does not go back to the airfield. What do i do?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users