Difference between revisions of "DumbAI"

From Elite Wiki
m
(script example from Oolite -> scripting page)
 
(3 intermediate revisions by 3 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");
  +
};
 
}
 
}
   
== [[BACK|AI]] ==
+
== [[AI|BACK]] ==
  +
  +
[[Category:Oolite scripting]]

Latest revision as of 14: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