Author Topic: AIPlayers  (Read 483 times)

I'd like for someone to explain to me the basics of bots(E.g. walking, shooting, aiming, etc)
I know how to spawn them but not the rest

So, you want a list of functions that AIPlayers use, and instructions on how to use them?

%bot=new aiPlayer(){datablock=playerstandardarmor;};%bot.dump();%bot.delete();

Put that in console.

I got a few questions
How do I put a bot in a minigame generated by a gamemode?
How do I make a bot fire his gun?
I'm a bit lost
« Last Edit: November 20, 2012, 06:09:27 PM by Aide33 »

How do I put a bot in a minigame generated by a gamemode?
I believe you would create an object (AiConnection?) to act as the bot's client, and the define that client's gamemode field

How do I make a bot fire his gun?
Check out the setImageTrigger function
I believe %bot.setImageTrigger(0,1); to fire and %bot.setImageTrigger(0,0); to stop firing

I believe you would create an object (AiConnection?) to act as the bot's client, and the define that client's gamemode field
Nah, easier than that. %bot.minigame = %minigameID;

Likely you'll be doing something like %bot.minigame = %client.minigame;