Difference between revisions of "Talk:Minimizing your Script"

Jump to navigation Jump to search
imported>Cbh
imported>Cbh
Line 16: Line 16:


::Thanks for the clarification: I'd assumed that each "begin" block was analogous to a function, and each relevant block would be called separately by the underlying game engine, so a "return" in a "gamemode" block wouldn't affect a subsequent "onpackagestart" block.  However, it seems that they're processed not as functions but as big "if" statements.  A matter of semantics, but one that can easily cause confusion... (and bugs!) --[[User:Cbh|cbh]] 20:14, 9 May 2009 (EDT)
::Thanks for the clarification: I'd assumed that each "begin" block was analogous to a function, and each relevant block would be called separately by the underlying game engine, so a "return" in a "gamemode" block wouldn't affect a subsequent "onpackagestart" block.  However, it seems that they're processed not as functions but as big "if" statements.  A matter of semantics, but one that can easily cause confusion... (and bugs!) --[[User:Cbh|cbh]] 20:14, 9 May 2009 (EDT)
::Just to follow up the above, I now see that the [[Return]] page in question makes this abundantly clear--so much for making assumptions! --[[User:Cbh|cbh]] 20:21, 9 May 2009 (EDT)


== Uncertainty ==
== Uncertainty ==
Anonymous user

Navigation menu