• 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.

Trigger not on initially, how to turn on?

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

I've noticed that some of the script can be whited out, by right clicking on it and check off "On Initially."

What is the purpose of doing so? I saw that these was done for many of the initializations of the map systems, e.g.

InitSystem (whited out) followed by System (not whited out).
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
For example, you have a periodic trigger running each 0.03 seconds, but in fact you don't need that trigger at start. So you can deactivate it from default to prevent useless checks/actions.

And later in game, when you need trigger you activate it per action.

That makes sense, but I'm just curious why initialization of data structures and core functions would be set "initially off" in this map.

Here is an example, where this library is used to set up the crucial starting conditions of the game...

x0r12q.png
 
Status
Not open for further replies.
Top