PrepSuicideOnPlayer
- Parameters
seconds integer- comment
- patch
1.07
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
boolean- Source code
function PrepSuicideOnPlayer takes integer seconds returns boolean local integer wave_prep = PrepTime() local integer save_length set save_length = harass_length set harass_length = 0 call AddSleepSeconds(seconds) if sleep_seconds-wave_prep > 0 then call TraceI("going to sleep for %d seconds before gathering next attack wave\n",sleep_seconds-wave_prep) //xxx call SuicideSleep(sleep_seconds-wave_prep) endif call Trace("preparing suicide attack wave\n") //xxx set harass_length = save_length if harass_length < 1 then call Trace("ERROR - no units specificed, exiting early\n") //xxx return false endif return true endfunction