HAPI Methods
Finding an object by name near a position
GameObject FindGameObjectNearPos(string name, Vector3 position)
// This allows you to get the nearest object from this position that matches the name.GameObject overpassRoadpart = HAPI.FindGameObjectNearPos("30 Wedge", new Vector3(-8.20f, 0, -45.58f));Finding an object by its hierarchy path
GameObject FindGameObjectByPath(string path)
// This allows you to get an object by its hierarchy pathGameObject overpass = HAPI.FindGameObjectByPath("Map/Container/Overpass");Saving the game
HAPI.SaveGame();Teleporting a player somewhere
player.Teleport(new Vector3(0,0,0));Kicking a player
Banning a player
Last updated