equal
deleted
inserted
replaced
97 === <tt>onGameStart()</tt> === |
97 === <tt>onGameStart()</tt> === |
98 |
98 |
99 <blockquote>This function is called when the first round starts. |
99 <blockquote>This function is called when the first round starts. |
100 </blockquote> |
100 </blockquote> |
101 Can be used to show the mission and for more setup, for example initial target spawning. |
101 Can be used to show the mission and for more setup, for example initial target spawning. |
|
102 |
|
103 === <tt>onPreviewInit()</tt> === |
|
104 This function is called when the map preview in the frontend is initialized. This happens when the script is selected or you change a map generator parameter. |
|
105 |
|
106 It is useful for scripts which create their own maps (see `AddPoint` and `FlushPoints`). If you create a map in this function, a preview will be generated from this map and is exposed to the frontend. |
102 |
107 |
103 === <tt>onGameTick()</tt> === |
108 === <tt>onGameTick()</tt> === |
104 |
109 |
105 <blockquote>This function is called on every game tick, i.e. 1000 times a second. If you just need to check on something periodically, consider... |
110 <blockquote>This function is called on every game tick, i.e. 1000 times a second. If you just need to check on something periodically, consider... |
106 </blockquote> |
111 </blockquote> |