Author Topic: Bot commands  (Read 7556 times)

Quote
THANKS GOES TO Nitramtj,RSCaptVenomAK AND GARAGEGAMES.COM FORUMS
the bots are still a work in progress, but here are the basic commands:
I will not offer suport on how to use the scripts. i made the instructions as easy as possible.
----------
spawn a bot
f8
press W to move a little bit forward
go into the console
new AIPlayer(bot) { datablock="LightMaleHumanArmor"; position=localclientconnection.camera.getPosition(); };
back in the game hit f7
or
aiplayer::spawnplayer();
or to have a name and health already
%player =aiplayer::spawnplayer();

----------
to make the bot invisible
go into the console
bob.setCloaked(1);

----------
make him visible again
go into the console
bot.setCloaked(0);

----------
to give him a weapon
go into the console
bot.mountImage(shotgunImage,0);
u can change to ...(swordimage,0);
or other weapon images
some weapons run out of ammo, when they do...
bot.incInventory(WEAPON_YOU_CHOSEAmmo,5);

----------
if you want to spawn another bot.. .
f8 from a new place than where you spawned the 1st bot
go into the console
new AIPlayer(bot2) { datablock="LightMaleHumanArmor"; position=localclientconnection.camera.getPosition(); };
back in the game hit f7

----------
to make them both fight each other
go into the console
bot.setAimObject(bot2);
bot2.setAimObject(bot1);
bot.setImageTrigger(0,1);
bot2.setImageTrigger(0,1);

----------
to make a bot fight a player
go into the console
bot.setAimObject(PERSON'S NULL NUMBER);
bot.setImageTrigger(0,1);

----------
to make them aim higher in case they shoot their feet
go into the console
bot.setAimLocation(VectorAdd(bot2.getPosition(),"0 0 1"));

----------
to kill the bots
go into the console
bot.kill();
bot2.kill();

----------
to make the bots follow you or whoever
go into the console
following(%obj,%this); = (following(bot null number, person u want to be folowed null number))

----------
give your bot a name and a health bar
go into the console
BOTS_NULL_NUMBER.setshapename(the_name_you_want);
please note that the health bar doesnt go down and the bot wont die

v

----------
to make the bot fly
mount an item/weapon in slot 4
bot.mountImage(shieldImage,4);
then
bot.setimagetrigger(4, 1);

to make the bot stop flying
bot.setimagetrigger(4, 0);

----------
to make the bot jump
equip an item/weapon in slot 2
bot.mountImage(quiverImage,2);
then
bot.setimagetrigger(2, 1);

to make the bot stop jumping
bot.setimagetrigger(2, 0);

----------
to make the bots do / get damage
the admin must turn damage on for "people" not for "both"

----------
to make the bots fly a little as following
flyf(%obj,%this);

----------
to change the bots skin colour
%bot.setskinname(colour);

----------
to give the bot a colored hat
bot.mountImage(scouthatImage,2,1,'brown');
thats an example, so u can change the image and color, but leave the other #'s

----------
to make a bot stand guard
spawn a normal bot
standguarda(%obj, %this);
build a building around the bot leaving him in the doorway
******when theres a "%bot" or "bot" you can replace it with the null number******

******TRY AND FIND THE 2 HIDDEN EASTER EGGS******
« Last Edit: January 09, 2006, 09:11:41 PM by Zero »

« Last Edit: January 09, 2006, 05:55:17 PM by Zero »

Why'd you scratch my name out. Because you hate me. Well I don't care, i did help find those. But thanks for these bot commands.


No, this was a useful post and i didn't flame it. You should feel lucky. And i DISLIKE stupid n00bs. Not all n00bs.

before quoting directly from an AiO-r "how-to" file, u shudve edited it cuz the last line doesnt work unless u open it in microsoft Word as is.

i REALLY need help with the bots

how do i find my null number

Press F8, then F11, look at your little guy, there should be a number beside him, thats the null number.  Yes i'm actually helping a n00b for once.
« Last Edit: January 14, 2006, 06:31:01 PM by RS^Capt.VenomAK »

Any post previous to March 2007 made on this account no longer exists.
« Last Edit: January 20, 2009, 01:30:35 PM by Spation »

lol i learned mine from gamewinners.com

Press F8, then F11, look at your little guy, there should be a number beside him, thats the null number.  Yes i'm actually helping a n00b for once.
thanks it worked