This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cw4:4rpl_tools [2024/02/18 15:50] – Updated sound players (fixed incorrect sound orders) Vertu | cw4:4rpl_tools [2024/03/16 19:53] (current) – [Automated Tower Grid Building] Added a statement for clarity of how to use it. LiteralNoob | ||
---|---|---|---|
Line 583: | Line 583: | ||
$rmb:1 # right click button | $rmb:1 # right click button | ||
- | Once | ||
- | @MakeSoundList | ||
- | endOnce | ||
- | if (GetMappedKey(" | + | if(< |
+ | |||
+ | if (GetMappedKey(" | ||
+ | 2 -> | ||
Mod(< | Mod(< | ||
< | < | ||
Line 593: | Line 593: | ||
endIf | endIf | ||
- | if (GetMappedKey(" | + | if(GetMappedKey(" |
+ | 2 -> | ||
Mod2(< | Mod2(< | ||
< | < | ||
Line 600: | Line 601: | ||
if (GetMouseButtonDown(< | if (GetMouseButtonDown(< | ||
- | PlaySoundAtPosition(< | + | PlaySoundAtPosition(< |
endif | endif | ||
:Once | :Once | ||
-1 ->index #So we start at 0, not 1. | -1 ->index #So we start at 0, not 1. | ||
+ | @MakeSoundList | ||
: | : | ||
Line 825: | Line 827: | ||
$rmb:1 # right click button | $rmb:1 # right click button | ||
- | Once | + | if(< |
- | @MakeSoundList | + | |
- | CreateUnitOnTerrain(" | + | |
- | false | + | |
- | Getpause | + | |
- | endOnce | + | |
SetUnitPosition(< | SetUnitPosition(< | ||
- | if(GetMappedKey(" | + | if(GetMappedKey(" |
+ | 2 -> | ||
Mod(< | Mod(< | ||
< | < | ||
Line 839: | Line 838: | ||
endIf | endIf | ||
- | if(GetMappedKey(" | + | if(GetMappedKey(" |
+ | 2 -> | ||
Mod2(< | Mod2(< | ||
< | < | ||
Line 866: | Line 866: | ||
:Once | :Once | ||
-1 ->index #So we start at 0, not 1. | -1 ->index #So we start at 0, not 1. | ||
+ | @MakeSoundList | ||
+ | CreateUnitOnTerrain(" | ||
+ | false -> | ||
+ | Getpause ->pause | ||
: | : | ||
Line 2338: | Line 2342: | ||
New towers will be constructed if they can connect to: existing riftlab, m-rift, pylons, energy pods and towers. | New towers will be constructed if they can connect to: existing riftlab, m-rift, pylons, energy pods and towers. | ||
+ | |||
+ | To run the console script, simply let it run continuously. | ||
<hidden click here for source code> | <hidden click here for source code> | ||
Line 2344: | Line 2350: | ||
# AutoTowerGrid | # AutoTowerGrid | ||
# by Kalli | # by Kalli | ||
+ | # Script is to run continuously in the console! | ||
$pacMode:0 # Makes all units built by the pilot unselectable and undeletable by the player | $pacMode:0 # Makes all units built by the pilot unselectable and undeletable by the player |