Reference 〉 Hook

modelStart(modelHelipad, hasModelbool)

Runs when a model is started, either initialized or resumed. The hasModel argument distinguishes between these two cases, though modelPreSetup or modelPostSetup are preferred for hooking the initialization of a new model.

Required Parameters

  • model Helipad

    The model object

  • hasModel bool

    Corresponds to model.hasModel; True if the model is resuming, and False if model.start() initializes a new model.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.