I'm trying to load a model from a URL, using the code found here
I simply created a game with a single AI script called MainAI and added a state to this.
The loop of the state runs and loads the Model (I can see this happening in the logs).
But when the loading is complete, and the status is '1' the line of code:
this.idle( )
Does not work, an error is returned:
[+ Warning ] {Scripting }AI Runtime error : [State] MainAi.loadObj_onLoop (line 20): attempt to call field 'idle' (a nil value)
Any idea how I can stop the loop from running?