Difference between revisions of "DumbAI"

From Elite Wiki
m (AI)
(script example from Oolite -> scripting page)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The most simple [[AI]]script, only the mandatory GLOBAL state, only one action repeated into eternity.  
+
The most simple [[AI]]script, only the mandatory GLOBAL state, only one action then it does nothing forever.  
  
 
  {
 
  {
    GLOBAL = {ENTER = ("performTumble"); EXIT = (); UPDATE = (); };  
+
GLOBAL =
 +
{
 +
ENTER = (performTumble);
 +
RESTARTED = (performTumble);
 +
UPDATE = ("pauseAI: 3600");
 +
};
 
  }
 
  }
  
 
== [[AI|BACK]] ==
 
== [[AI|BACK]] ==
 +
 +
[[Category:Oolite scripting]]

Latest revision as of 13:09, 2 January 2011

The most simple AIscript, only the mandatory GLOBAL state, only one action then it does nothing forever.

{
	GLOBAL =
	{
		ENTER = (performTumble);
		RESTARTED = (performTumble);
		UPDATE = ("pauseAI: 3600");
	};
}

BACK