AIRun
Starts a typed AI script task in the current script player's AI context and returns its task identifier.
Signature
Parameters and return
Global scope · Return: int
| Position | Type |
|---|---|
| 1 | str |
| 2 | Settlement |
| 3 | ObjList |
| 4 | Obj |
| 5 | int |
Other overloads
| Member | Signature and description |
|---|---|
AIRunGlobal | int AIRun(str)Starts a named AI script task in the current player context and returns its task identifier or -1. |
AIRunGlobal | int AIRun(int, str, Settlement, ObjList, Obj, int)Attempts to start an AI script task for the supplied one-based player and returns its task identifier or -1. |
AIRunGlobal | void AIRun(int, str)Native adapter for this function resolving a player script and dispatching 0 integer arguments. |
AIRunGlobal | void AIRun(int, str, int)Native adapter for this function resolving a player script and dispatching 1 integer arguments. |
AIRunGlobal | void AIRun(int, str, int, int)Native adapter for this function resolving a player script and dispatching 2 integer arguments. |
AIRunGlobal | void AIRun(int, str, int, int, int)Native adapter for this function resolving a player script and dispatching 3 integer arguments. |
AIRunGlobal | void AIRun(int, str, int, int, int, int)Native adapter for this function resolving a player script and dispatching 4 integer arguments. |
AIRunGlobal | void AIRun(int, str, int, int, int, int, int)Native adapter for this function resolving a player script and dispatching 5 integer arguments. |