Hey I have run into another problem and I was hoping someone could point me in the right direction. I want to create a simple AI enemy for my game. All he needs to do is wait until he sees the player then follow and attack the player until he is killed.
Preferably I would like to use a peaceable pawn that I can drop into the level as an actor without any need to deal with kismet. From previous work I know I can create a placeable pawn by simply adding “placeable” to the class declaration at the beginning of an extended pawn script, and when the game is run the pawn will automatically default to using the controller defined in the game’s gameinfo and will run around and act normally.
The game I am making defines MBController (my custom controller class), which extends UTPlayerController, as the default controller in its gameinfo class. By default this script apparently tells the pawn to run a deathmatch AI and it attacks any pawn it can find, I want it to only attack the player. I can tell from the logs I set up that the placeable pawns are using MBController as their controller, and I have no idea where they are getting their behavior from since I can’t find any connection to an AI controller in any of the controller parent classes.
Thanks in advance for any help you can provide : )
Preferably I would like to use a peaceable pawn that I can drop into the level as an actor without any need to deal with kismet. From previous work I know I can create a placeable pawn by simply adding “placeable” to the class declaration at the beginning of an extended pawn script, and when the game is run the pawn will automatically default to using the controller defined in the game’s gameinfo and will run around and act normally.
The game I am making defines MBController (my custom controller class), which extends UTPlayerController, as the default controller in its gameinfo class. By default this script apparently tells the pawn to run a deathmatch AI and it attacks any pawn it can find, I want it to only attack the player. I can tell from the logs I set up that the placeable pawns are using MBController as their controller, and I have no idea where they are getting their behavior from since I can’t find any connection to an AI controller in any of the controller parent classes.
Thanks in advance for any help you can provide : )
Comment