Difference between revisions of "HomeAI"

From Elite Wiki
(script example from Oolite -> scripting page)
 
Line 13: Line 13:
 
'''[[AI|BACK]]'''
 
'''[[AI|BACK]]'''
   
[[Category:Oolite]]
+
[[Category:Oolite scripting]]

Latest revision as of 13:14, 2 January 2011

Simple one-state AI, will land any craft on the nearest planet.

Will exit once landed.

{
   GLOBAL = {
       "DESIRED_RANGE_ACHIEVED" = (landOnPlanet); 
       ENTER = (setCourseToPlanet, performFlyToRangeFromDestination); 
       EXIT = (); 
       UPDATE = ();     }; 
}

BACK