Posted by: NOP - Thursday, June 23, 2011 8:49:56 AM
I made a tech radar tower that has a scan ability cloned from sattelite scan but it wont fire, it just gives me a generic invalid cursor when I try. The reason why it needs its own special power is that without, using the scan ability also depletes the US sattelite ability. Heres the relevant code: [b]Object: [/b] ; ***DESIGN parameters *** DisplayName = OBJECT:TechRadar EditorSorting = STRUCTURE CommandSet = TechradarCommandSet ShroudClearingRange = 1000 ; *** ENGINEERING Parameters *** KindOf = STRUCTURE SELECTABLE IMMOBILE CAPTURABLE TECH_BUILDING CONSERVATIVE_BUILDING Body = ActiveBody ModuleTag_03 MaxHealth = 2000.0 InitialHealth = 2000.0 End Behavior = OCLSpecialPower ModuleTag_24 SpecialPowerTemplate = SpecialPowerSpySatellite OCL = SUPERWEAPON_SpySatellite CreateLocation = CREATE_AT_LOCATION End [b]command set[/b]: CommandSet TechradarCommandSet 1 = Command_Radarsweep End [b]command button[/b]: CommandButton Command_Radarsweep Command = SPECIAL_POWER SpecialPower = SpecialPowerSpySatellite2 Options = NEED_TARGET_POS CONTEXTMODE_COMMAND NEED_SPECIAL_POWER_SCIENCE TextLabel = CONTROLBAR:radarsweeptitel ButtonImage = SSRadarsweep ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is DescriptLabel = CONTROLBAR:radarsweep RadiusCursorType = SPYSATELLITE InvalidCursorName = GenericInvalid End [b]special power[/b] SpecialPower SpecialPowerSpySatellite2 Enum = SPECIAL_SPY_SATELLITE ReloadTime = 60000 ; in milliseconds PublicTimer = No RadiusCursorRadius = 300 ; align with system.ini's SpySatellitePing's ShroudClearingRange InitiateAtLocationSound = SpySatellite SharedSyncedTimer = Yes ShortcutPower = no ;Capable of being fired by the side-bar shortcut. ;AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers. End

Posted by: Annihilationzh - Thursday, June 23, 2011 8:54:41 AM
ModuleTag_24 SpecialPowerSpySatellite --> SpecialPowerSpySatellite2

Posted by: NOP - Thursday, June 23, 2011 9:38:24 AM
Thanks! Worked like a charm!