modding:function:shpsetcontroller
This is an old revision of the document!
Discuss this page on this page's Talk ;Page
shpSetController
See 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, ship |
Description | Changes the ai of the ship. |
Very interesting function allowing you to change the way a ship behaves. Possible values are “auton”, “fleet”, “fleetcommand”, “ferian”
Example
(shpSetController gSource "auton")
Makes the calling ship act like an auton.
Return to Functions list
modding/function/shpsetcontroller.1419655255.txt.gz · Last modified: 2014/12/27 04:40 by 127.0.0.1