class MyNewAI extends AIController { function Start() { //This function is inside the class declaration. } //These are optional prototypes. Notice the ; at the end rather than {}. //Squirrel doesn't require it, but some programmers like to use them. function Save(); function Load(version, data); } function MyNewAI::Save() { //This function is outside the class declaration and requires the name of the class so squirrel can assign it to the right place. } function MyNewAI::Load(version, data) { } function MyNewAI::Start() { while (true) { AILog.Info("I am a very new AI with a ticker called MyNewAI and I am at tick " + this.GetTick()); this.Sleep(50); } }