main

The objects main function. The game runs this function when the object is created and it must not ever end. To accomplish this put an infinite loop at the end:
  while(1) do 
    AI_WaitSeconds(1);
The main function is used to setup some more object properties (see SF_SetObjectFlag), and to control the object during it's lifetime.