Difference between revisions of "FttAI"
From Elite Wiki
(category) |
Eric Walch (talk | contribs) (script example from Oolite -> scripting page) |
||
Line 5: | Line 5: | ||
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: PASS_THRU_RING"); |
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: PASS_THRU_RING"); |
||
"NOTHING_FOUND" = (exitAI); |
"NOTHING_FOUND" = (exitAI); |
||
− | + | }; |
|
− | EXIT = (); }; |
||
: |
: |
||
"PASS_THRU_RING" = { |
"PASS_THRU_RING" = { |
||
Line 11: | Line 11: | ||
"ENDPOINT_REACHED" = ( |
"ENDPOINT_REACHED" = ( |
||
"setStateTo: NEXT_RING"); |
"setStateTo: NEXT_RING"); |
||
− | + | }; |
|
− | EXIT = (); }; |
||
: |
: |
||
"NEXT_RING" = { |
"NEXT_RING" = { |
||
Line 17: | Line 17: | ||
"TARGET_FOUND" = ("setStateTo: PASS_THRU_RING"); |
"TARGET_FOUND" = ("setStateTo: PASS_THRU_RING"); |
||
"LAST_BEACON" = (exitAI); |
"LAST_BEACON" = (exitAI); |
||
− | + | }; |
|
− | EXIT = (); }; |
||
} |
} |
||
Line 23: | Line 23: | ||
[[AI|BACK]] |
[[AI|BACK]] |
||
− | [[Category:Oolite]] |
+ | [[Category:Oolite scripting]] |
Latest revision as of 13:12, 2 January 2011
{ GLOBAL = { ENTER = ("setSpeedFactorTo: 0.5", "targetFirstBeaconWithCode: tr" ); "TARGET_FOUND" = (setDestinationToTarget, "setSpeedFactorTo: 1.0", "setDesiredRangeTo: 5000", performFlyToRangeFromDestination); "DESIRED_RANGE_ACHIEVED" = ("setStateTo: PASS_THRU_RING"); "NOTHING_FOUND" = (exitAI); };
"PASS_THRU_RING" = { ENTER = ("setSpeedFactorTo: 0.60", "setSpeedTo: 225", setRacepointsFromTarget, performFlyRacepoints); "ENDPOINT_REACHED" = ( "setStateTo: NEXT_RING"); };
"NEXT_RING" = { ENTER = ("setSpeedFactorTo: 0.0", "targetNextBeaconWithCode: tr"); "TARGET_FOUND" = ("setStateTo: PASS_THRU_RING"); "LAST_BEACON" = (exitAI); }; }