I have noticed for a long time that if I ever declare a local var with a state of the bot controller class, it will cause the game to crash when loading a new map from a map that contains this bot.
This is an example:
state MyTestState
{
local int testInt;
}
So when adding this code to any AI controller, if a level is loaded that contains this bot (it will load fine), but if you then load a new map the game will crash. This indicates that it isn’t able to successfully destroy the actor when these state vars are declared.
Does anyone know a way around this. I’ve been getting around it by declaring class variables for use in states, but it would be much nicer to be able to declare local vars.