|
BFME 2 - ROTWK Code Refence
1.0
|
Public Attributes | |
| String | UnitName |
| String | UnitCommand |
| Boolean | SpawnOnce |
This behavior allows me to queue this unit up for the citadel to build. Otherwise I would need a hidden command button.
The production behavior checks to see if there is actually a commandset button setup to build this unit. This bypasses that.
UnitName is all that's needed :)
Behavior = SpawnUnitBehavior ModuleTag_TheSpawnUnitBehavior
; L01F55180:
UnitName = RohanOathbreakerHorde ;SUB_L006D4C30:String (Object) //Unit to spawn
UnitCommand = Command_ConstructRohanOathbreakerHorde ;SUB_L006D4C30:String (CommandButton) //Commandbutton of the unit
SpawnOnce = Yes ;SUB_L006D3400:Boolean //Spawn only once
End
| String UnitName |
String(Object) Unit to spawn
| String UnitCommand |
String(CommandButton) Commandbutton of the unit
| Boolean SpawnOnce |
Spawn only once