;////////////////Put this in units code (who you want to have the power) Behavior = OCLSpecialPower ModuleTag_08 ;Note>> ModuleTag_number may need to change if 08 is already taken SpecialPowerTemplate = SuperweaponSpawnFoundation OCL = SUPERWEAPON_SpawnFoundation CreateLocation = USE_OWNER_OBJECT End ;//////////////Put this in commandbuttons.ini CommandButton Command_SpawnFoundation Command = SPECIAL_POWER SpecialPower = SuperweaponSpawnFoundation TextLabel = CONTROLBAR:SpawnOrcs ButtonImage = SMSpawnOrcs ;Note>> Needs proper image, don't know how :) ButtonBorderType = ACTION; Identifier for the User as to what kind of button this is InPalantir = Yes DescriptLabel = CONTROLBAR:TooltipSpawnOrcs End ://///////Put this in specialpower.ini SpecialPower SuperweaponSpawnFoundation Enum = SPECIAL_SPAWN_ORCS ReloadTime = 1 PublicTimer = No SharedSyncedTimer = Yes End ;///////////Put this in objectcreationlist.ini ; --------------------------------------------------------------------------------------- ; Spawn Foundation ObjectCreationList SUPERWEAPON_SpawnFoundation CreateObject ObjectNames = RohanBuildingFoundation ;Note>> Can be whichever foundation you want elves, gondor, isegard etc.. Count = 1 SpreadFormation = Yes MinDistanceAFormation = 16.0 MinDistanceBFormation = 24.0 MaxDistanceFormation = 80.0 FadeIn = Yes FadeTime = 200 End CreateObject ObjectNames = BuildingDamageBits04 Count = 30 Disposition = SEND_IT_UP DispositionIntensity = 20 SpreadFormation = Yes MinDistanceAFormation = 16.0 MinDistanceBFormation = 24.0 MaxDistanceFormation = 80.0 End CreateObject ObjectNames = BuildingDamageBits01 Count = 30 Disposition = SEND_IT_UP DispositionIntensity = 25 SpreadFormation = Yes MinDistanceAFormation = 16.0 MinDistanceBFormation = 24.0 ;////////Then add the button to your units command set, e.g ;//////// Command_SpawnFoundation
Now you can build a foundation wherever you want: