• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[AI] SuicideSleep

Status
Not open for further replies.
Level 2
Joined
Sep 4, 2004
Messages
30
Can someone explain me what's the purpose of
this function. I always use regular Sleep,
and if seconds are less than 5 than its nearly
the same - so?
 
Level 6
Joined
Jun 16, 2004
Messages
237
Level 2
Joined
Sep 4, 2004
Messages
30
I dont understand why it is called suicide,
and why is it always used with attack functions,
the global variable is only rarely used and
I never saw it to set to 0, so it is always less and less. What's the deeper meaning of this?
 
Level 6
Joined
Jun 16, 2004
Messages
237
Well, I think it has something to do with the feature of "waiting a set amount of time until the next attack wave begins." This is implemented in the AI editor and is supposedly is used in "defend for x minutes" type missions.

I haven't found much use for it in custom scripted AIs.
 
Status
Not open for further replies.
Top