Difference between revisions of "GotoWaypointAI"
From Elite Wiki
Eric Walch (talk | contribs) (New page: Defined states: * '''GLOBAL''': → NEW_WAYPOINT * '''GO_TO_WAYPOINT''': → NEW_WAYPOINT * '''NEW_WAYPOINT''': →GO_TO_WAYPOINT Refered to AI's: { "GO_TO_WAYPOINT" = { ...) |
Eric Walch (talk | contribs) (script example from Oolite -> scripting page) |
||
Line 35: | Line 35: | ||
− | [[Category:Oolite]] | + | [[Category:Oolite scripting]] |
Latest revision as of 12:14, 2 January 2011
Defined states:
- GLOBAL: → NEW_WAYPOINT
- GO_TO_WAYPOINT: → NEW_WAYPOINT
- NEW_WAYPOINT: →GO_TO_WAYPOINT
Refered to AI's:
{ "GO_TO_WAYPOINT" = { ENTER = (); "WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT"); "DESIRED_RANGE_ACHIEVED" = (exitAI); ATTACKED = (exitAI); "INCOMING_MISSILE" = (exitAI); EXIT = (); UPDATE = ("setSpeedFactorTo: 0.75", performFlyToRangeFromDestination, checkCourseToDestination); };
"NEW_WAYPOINT" = { ENTER = ("setSpeedFactorTo: 0.0", "setDesiredRangeTo: 50.0", checkCourseToDestination); "WAYPOINT_SET" = ("setStateTo: NEW_WAYPOINT"); "COURSE_OK" = ("setStateTo: GO_TO_WAYPOINT"); "DESIRED_RANGE_ACHIEVED" = (exitAI); ATTACKED = (exitAI); "INCOMING_MISSILE" = (exitAI); EXIT = (); UPDATE = (); }; GLOBAL = {ENTER = ("setStateTo: NEW_WAYPOINT"); EXIT = (); UPDATE = (); }; }