Autonauts Modding
ModGoTo Class Reference
Inheritance diagram for ModGoTo:
ModCustom

Public Member Functions

void CreateGoTo (string UniqueName, string[] NewIngredientsStringArr=null, int[] NewIngredientsAmountArr=null, string ModelName="", bool UsingCustomModel=true)
 
void MoveTo (int UID, int x, int y)
 
- Public Member Functions inherited from ModCustom
void UpdateModelParameters (string UniqueName, float Scale=1f, float RotX=0f, float RotY=0f, float RotZ=0f, float TransX=0f, float TransY=0f, float TransZ=0f)
 
void UpdateModelScale (string UniqueName, float Scale=1f)
 
void UpdateModelScaleSplit (string UniqueName, float ScaleX=1f, float ScaleY=1f, float ScaleZ=1f)
 
void UpdateModelRotation (string UniqueName, float RotX=0f, float RotY=0f, float RotZ=0f)
 
void UpdateModelTranslation (string UniqueName, float TransX=0f, float TransY=0f, float TransZ=0f)
 
void RegisterForCustomCallback (string UniqueName, string CallbackType, DynValue Callback)
 

Member Function Documentation

◆ CreateGoTo()

void ModGoTo.CreateGoTo ( string  UniqueName,
string[]  NewIngredientsStringArr = null,
int[]  NewIngredientsAmountArr = null,
string  ModelName = "",
bool  UsingCustomModel = true 
)

Create a custom goto item, one that can move about with pathfinding

Version
135.8
Parameters
UniqueName- String - The unique and corresponding name of the goto - Required
NewIngredientsStringArr- String array - List of ingredients required to make the goto - Defaults to none
NewIngredientsAmountArr- Number (integer) array - The amount of each of the ingredients (Must match size of ingredients array) - Defaults to none
ModelName- String - The name/path of the custom model to use or name/path of the in game model to use - Defaults to in game 'Minecart' Model
UsingCustomModel- Boolean - True if using a custom model, false if using in game model/default model - Defaults to true
Returns
None
Example
ModGoTo.CreateGoTo("SuperCart") – Default Model
ModGoTo.CreateGoTo("SuperCart", {"Folk"}, {1})– Default Model
ModGoTo.CreateGoTo("SuperCart", {"Folk"}, {1}, "Models/Vehicles/Minecart", false) – In Game Model
ModGoTo.CreateGoTo("SuperCart", {"Folk"}, {1}, "Cupcake/Cupcake_v1", true) – Custom Model
Note
Can be used in functions: Creation()

◆ MoveTo()

void ModGoTo.MoveTo ( int  UID,
int  x,
int  y 
)

Move a GoTo to another location

Version
135.8
Parameters
UID- Number (integer) - The unique identifier for the desired GoTo
x- Number (integer) - The location to move to in tile coordinates
y- Number (integer) - The location to move to in tile coordinates
Returns
None
Example
ModGoTo.MoveTo(3428, 86, 21)
Note
Can be used in functions: AfterLoad(), AfterLoad_CreatedWorld(), AfterLoad_LoadedWorld(), OnUpdate()

The documentation for this class was generated from the following file: