8,245
edits
Paradox-01 (talk | contribs) m (why not a "code pieces" section - why inventing same things over and over) |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 122: | Line 122: | ||
==Code pieces== | ==Code pieces== | ||
# | # an old but useful character setup function by geyser | ||
func '''SpawnNameFlagHealthReset'''(string n, int f, int h, int r){ | func '''SpawnNameFlagHealthReset'''(string n, int f, int h, int r){ | ||
ai2_spawn(n); chr_teleport(n, f) | ai2_spawn(n); chr_teleport(n, f) | ||
Line 131: | Line 131: | ||
# can be like this ... | # can be like this ... | ||
func wave_setup { | func wave_setup { | ||
#note that missing arguments are taken to be 0) | # note that missing arguments are taken to be 0) | ||
SpawnNameFlagHealthReset Griffin 23 600 | SpawnNameFlagHealthReset Griffin 23 600 | ||
SpawnNameFlagHealthReset Muro 22 2500 | SpawnNameFlagHealthReset Muro 22 2500 |
edits