Unlocked for another question around it.
I gave the bot an AiConnection, however when i killed it:
WARNING: No player object in GameConnection::onDeath() for client '42143'
The client number stated was the client number of the bot.
Oddly, i really gave it an AiConnection:
%sentry = new AIPlayer()
{
datablock = SentryArmor;
position = %pos;
};
MissionCleanup.Add(%sentry);
%sentry.client = new AIconnection()
{
minigame = %client.minigame;
brickGroup = %client.brickGroup; //So the client can still ride horses and whatnot
name = "Sentry";
};
MissionCleanup.add(%sentry.client);
So, i want to know, how to fix this?
EDIT: (Once again, everything called here exists)
Also, when i kill it a CI pops up and displays i killed something without name.
Perhaps related to the console report, or do i need to add something else to fix that?