This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
crpl:docs:createunit [2013/03/17 15:26] – virgilw | crpl:docs:createunit [2015/04/08 00:13] – Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | ||
<- [[crpl: | <- [[crpl: | ||
===== CreateUnit | ===== CreateUnit | ||
Line 10: | Line 9: | ||
Creates a unit at the specified coordinates. | Creates a unit at the specified coordinates. | ||
- | * CRPLCORE | ||
* COLLECTOR | * COLLECTOR | ||
* RELAY | * RELAY | ||
Line 27: | Line 25: | ||
* BEAM | * BEAM | ||
* SNIPER | * SNIPER | ||
+ | * FORGE | ||
* BERTHA | * BERTHA | ||
* POWERZONE | * POWERZONE | ||
* OREDEPOSIT | * OREDEPOSIT | ||
- | * ENERGYDEPOSIT0 | + | * RESOURCEPACK |
- | * ENERGYDEPOSIT1 | + | |
- | * ENERGYDEPOSIT2 | + | |
- | * ENERGYDEPOSIT3 | + | |
* SHIELDKEY | * SHIELDKEY | ||
+ | * TECHARTIFACT | ||
+ | * MESSAGEARTIFACT | ||
+ | * AOO | ||
+ | * THOR | ||
+ | * CRPLCORE | ||
+ | * RESOURCEPACK | ||
+ | * TOTEM | ||
+ | * EMITTER | ||
+ | * SPORETOWER | ||
+ | * RUNNERNEST | ||
+ | * AETOWER | ||
+ | * INHIBITOR | ||
=== Examples === | === Examples === | ||
Line 40: | Line 48: | ||
" | " | ||
</ | </ | ||
+ | < | ||
+ | # Build an emitter or spore tower at current location. | ||
+ | RandFloat ->rand | ||
+ | if (<-rand lt(0.5)) | ||
+ | CreateUnit(" | ||
+ | SetScriptVar(< | ||
+ | SetScriptVar(< | ||
+ | else | ||
+ | CreateUnit(" | ||
+ | SetScriptVar(< | ||
+ | SetScriptVar(< | ||
+ | SetScriptVar(< | ||
+ | SetScriptVar(< | ||
+ | endif | ||
+ | </ |