Search the Community
Showing results for tags 'command button'.
Found 1 result
-
ZH Scripting Issues: Reveal Map at Waypoint and Swapping Infantry Units
PK_Soar posted a topic in Generals / Zero Hour Maps & Modding
I've recently picked up work on an old project of mine, a game mode for Zero Hour modeled after Battlefield's conquest, in which you drain your enemies 'tickets' by capturing objectives. Scripting the majority of the mode is done, it works basically as intended. Among other things, some more work needs to be done to balance the Toxin and Infantry faction, by replacing their specialized Toxin Rebel and Minigunner units with their vanilla counterparts (at least for the early game), and also by revealing a small circle around the objectives in the fog of war. For the unit switch: 'Chem_GLAInfantryRebel' becomes Buildable (No) Command button: 'Command_ConstructGLAInfantryRebel' is added to all objects of type 'Chem_GLABarracks' in slot number 1 (1-12). And... 'Infa_ChinaInfantryMiniGunner' becomes Buildable (No) Command button: 'Command_ConstructChinaInfantryRedguard' is added to all objects of type 'Infa_ChinaBarracks' in slot number 1 (1-12). The first part of each script works, as the button for those units are not present, but the more important second part doesn't seem to be doing the job. As for the map reveal: [???]The map is revealed at Waypoint 'Ob1' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob2' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob3' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob4' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob5' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob6' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob1' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob2' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob3' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob4' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob5' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob6' with a radius of 100.00 feet for Player 'player_1'. The map is revealed at Waypoint 'Ob1' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob2' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob3' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob4' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob5' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob6' with a radius of 100.00 feet for Player '<Local Player>'. Been at it for a good few hours today, without much luck. Any help is greatly appreciated!- 1 reply
-
- reveal map at waypoint
- generals
- (and 4 more)