Recent api additions
Posted: 21 Apr 2009 19:21
There are two new optional functions in info.nut:
GetUrl() can return a string that points to your own website or a forum thread for your AI. It'll be displayed in the AI debug panel when your AI crashes. It's also shown in the AI selection window.
UseAsRandomAI() can return true (default) or false. When it returns false that AI will never be chosen randomly, the user will have to select that AI explicitly. Main use would be helper AIs that don't really compete, like TownCars.
AIOrder.AIOF_STOP_IN_DEPOT has been added as an order flag to allow AIs to give stop in depot orders.
GetUrl() can return a string that points to your own website or a forum thread for your AI. It'll be displayed in the AI debug panel when your AI crashes. It's also shown in the AI selection window.
UseAsRandomAI() can return true (default) or false. When it returns false that AI will never be chosen randomly, the user will have to select that AI explicitly. Main use would be helper AIs that don't really compete, like TownCars.
AIOrder.AIOF_STOP_IN_DEPOT has been added as an order flag to allow AIs to give stop in depot orders.