Difference between revisions of "HomeAI"

From Elite Wiki
 
(script example from Oolite -> scripting page)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
  
 
'''[[AI|BACK]]'''
 
'''[[AI|BACK]]'''
 +
 +
[[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