Difference between revisions of "FttAI"
From Elite Wiki
Eric Walch (talk | contribs) (script example from Oolite -> scripting page) |
Cholmondely (talk | contribs) (Added note) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | An NPC Racing Pilot AI (Oolite v.1.65) | ||
+ | |||
{ | { | ||
GLOBAL = { | GLOBAL = { | ||
Line 22: | Line 24: | ||
[[AI|BACK]] | [[AI|BACK]] | ||
+ | |||
+ | See also [[Racing Script]] | ||
[[Category:Oolite scripting]] | [[Category:Oolite scripting]] |
Latest revision as of 01:43, 29 November 2022
An NPC Racing Pilot AI (Oolite v.1.65)
{ 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); }; }
See also Racing Script