Discuss this page on this page's [[shpSetController Talk Page|Talk ;Page]] === shpSetController === See [[http://xelerus.de/index.php?s=functions&function=227|shpSetController at Xelerus]] ^ Syntax | (shpSetController ship string) | ^ Arguments | ship: The ship that want to change the ai on. | ^ | string: The name of the controller. | ^ Returns | condition: True if successful, Nil otherwise. | ^ Category | [[ai functions|ai]], [[ship functions|ship]] | ^ Description | Changes the way that a ship behaves and carries out orders. | === Supported Orders === Each controller supports a different set of orders in order to provide special behaviors. ^ Controller / Order ^ Order / Controller ^ (standard) ^ auton ^ crew ^ ferian ^ fleet ^ fleetcommand ^ gaianprocessor ^ gladiator ^ zoanthrope ^ ^ aim | ✓ | | | | | | | | | ^ approach | ✓ | | | ✓ | | | | | | ^ attack | ✓ | | | ✓ | ✓ | ✓ | | | | ^ attackArea | ✓ | | | | | | | | | ^ attackHold | ✓ | | | | | | | | | ^ attackNearestEnemy | ✓ | | | | ✓ | | | | | ^ attackPlayerOnReturn | ✓ | | | ✓ | | | | | | ^ attackStation | ✓ | | | | | | | | | ^ bombard | ✓ | | | | | | | | | ^ dock | ✓ | | | | ✓ | | | | | ^ escort | ✓ | ✓ | | | ✓ | | | | ✓ | ^ fireEvent | ✓ | | | | | | | | | ^ follow | ✓ | | | | | | | | | ^ followPlayerThroughGate | ✓ | ✓ | | | ✓ | | | | ✓ | ^ gate | ✓ | ✓ | | ✓ | | ✓ | | | ✓ | ^ gateOnStationDestroyed | ✓ | | | | | | | | | ^ gateOnThreat | ✓ | | | | | | | | | ^ goto | ✓ | | | | | | | | | ^ gotoPos | ✓ | | | | | | | | | ^ guard | ✓ | | | | ✓ | ✓ | | | ✓ | ^ hold | ✓ | | | | | | | | | ^ holdAndAttack | ✓ | | | | | | | | | ^ holdCourse | ✓ | | | | | | | | | ^ loot | ✓ | | | | | | | | | ^ mine | ✓ | | | ✓ | | | | | | ^ navPath | ✓ | | | | | | | | | ^ orbit | ✓ | | | | | | | | | ^ patrol | ✓ | | | | ✓ | | | | ✓ | ^ scavenge | ✓ | | | | | | | | | ^ sendMessage | ✓ | | | | | | | | | ^ sentry | ✓ | | | | | | | | | ^ tradeRoute | ✓ | | | | | | | | | ^ turnTo | ✓ | | | | | | | | | ^ wait | ✓ | | | | | ✓ | | | | ^ waitForEnemy | ✓ | | | | | | | | | ^ waitForPlayer | ✓ | ✓ | | | | | | | ✓ | ^ waitForTarget | ✓ | | | | | | | | | ^ waitForThreat | ✓ | | | | | | | | | ^ waitForUndock | ✓ | | | | | | | | | ^ wander | ✓ | | | | | | | | | === Example === (shpSetController gSource "auton") Makes the calling ship act like an auton. Return to [[:Functions]] list