Deploying Units
#2
Posted 21 July 2004 - 05:17 AM
#3
Posted 21 July 2004 - 05:44 AM
Manual Deploy
For units to deploy like Siege tanks (from Starcraft) or TS Nod artillery:;;In object.ini (or whatever other object INI)
CommandSet = NemoraVehicleDefenderCommandSet
Locomotor = SET_NORMAL InfernoLocomotor
Locomotor = SET_NORMAL_UPGRADED None
Behavior = ProductionUpdate ModuleTag_11
;nothing here
End
Behavior = WeaponSetUpgrade ModuleTag_12
TriggeredBy = Upgrade_Deploy
End
Behavior = LocomotorSetUpgrade ModuleTag_13
TriggeredBy = Upgrade_Deploy
End
Behavior = CommandSetUpgrade ModuleTag_14
CommandSet = NemoraVehicleDefenderCommandSet_2
TriggeredBy = Upgrade_UnDeploy
RemoveUpgrades = Upgrade_Deploy
End
Behavior = CommandSetUpgrade ModuleTag_15
CommandSet = NemoraVehicleDefenderCommandSet
TriggeredBy = Upgrade_Deploy
RemoveUpgrades = Upgrade_UnDeploy
End;;In Upgrade.ini
; deployment
Upgrade Upgrade_Deploy
Type = OBJECT
BuildTime = 0
BuildCost = 0
ButtonImage = SARadarUpgrade
End
Upgrade Upgrade_UnDeploy
Type = OBJECT
BuildTime = 0
BuildCost = 0
ButtonImage = SARadarUpgrade
End;In CommandSet.ini
;-----
CommandSet NemoraVehicleDefenderCommandSet
1 = Command_AttackMove
2 = Command_Guard
3 = Command_Stop
5 = Command_Deploy
End
;-----
CommandSet NemoraVehicleDefenderCommandSet_2
1 = Command_AttackMove
2 = Command_Guard
3 = Command_Stop
5 = Command_UnDeploy
End;In CommandButton.ini
CommandButton Command_Deploy
Command = OBJECT_UPGRADE
Upgrade = Upgrade_Deploy
TextLabel = CONTROLBAR:Stop
DescriptLabel = CONTROLBAR:Stop
ButtonImage = SACDozer
ButtonBorderType = BUILD
End
CommandButton Command_UnDeploy
Command = OBJECT_UPGRADE
Upgrade = Upgrade_UnDeploy
TextLabel = CONTROLBAR:Stop
DescriptLabel = CONTROLBAR:Stop
ButtonImage = SACDozer
ButtonBorderType = BUILD
End
If you want, you can give it a weaponset only available with PLAYER_UPGRADE, equating to a deploy-only weapon, like TS artillery or the seige tank's shock cannon.
Posted by kornlord283, at the DeeZire.net forums - http://www.deezire.n...t=6962&start=15
#4
Posted 29 May 2017 - 09:02 AM
Hey guys!
I was following the steps for a Deploy-Button, but it's not working.
In the game, the unit with the button: "Stopp - can't buy this upgrade" and i can't click the button.
What is to do that is works?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users