Author Topic: why is bot not working  (Read 9033 times)

PPPPS: if you make an airboat or mech bot, you can still drive them!

Is there any way to get a player to follow another player using commands similar to these?

sure for example:
bot.setMoveObject(findClientByName("Chilmans").player);

This would make the bot follow me

PS: only works if I am on your server!

Is it possible to make the bot look like you?

You could try it with the set appearience events (I hope i've written it right :D)
First you go to a brick and do this event:
On activate_player_set bodyparts_[0]
On activate_player_set bodycolours_[0][0]

Then send it and press the brick!
Go to the brick's events and you see instead of 0's some numbers. write them down somewhere!
Then make another brick with this event:
On bot touch_bot_set bodyparts_[a]
On bot touch_bot_ set bodycolours_[a][a]
Instead of the a's you have to write the numbers you have written down!
Be carefull: ONLY WRITE THE NUMBER THAT WAS IN THE SAME BOX!

This should work!

I tried it it doesn't works for me.
But that might be because of the on bot touch event doesn't work properly!
« Last Edit: January 25, 2009, 07:15:33 AM by chilmans »

is there a way to fetch bots?

or make them jump/jet?
« Last Edit: February 14, 2009, 01:58:45 PM by Healbadbad »

words can discrib how happy i am
I noticed  :cookieMonster:
Also: Is there a way to name bots?
Ololhurr
...This should be stickied, actually.

thanks for that info
Because that command was made for Blockland v0002, the beta, not v10. You also have to be the host of the server. (Non-dedicated)

new AIPlayer(bot) { datablock="PlayerStandardArmor"; position=localclientconnection.camera.getPosition(); };

Try that.

I'm assuming you're using this guide or one of the many copies of it. If you are, the other commands in v10 versions:

Spawn Second Bot
new AIPlayer(bot2) { datablock="PlayerStandardArmor"; position=localclientconnection.camera.getPosition(); };

Invisible
bot.hideNode("ALL");

Visible
bot.applyDefaultCharacterPref s(); (probably, I haven't tested)

Bot Weapons
bot.mountImage(shotgunImage,0); will work if you have Ephialtes' shotgun installed and enabled. Other 'images' to try:
gunImage: Gun
swordImage: Sword
bowImage: Bow
hammerImage: Hammer

The weapons won't run out of ammo in v10.

Bots Fight Each Other
    bot.setAimObject(bot2);
    bot2.setAimObject(bot1);
    bot.setImageTrigger(0,1);
    bot2.setImageTrigger(0,1);

They will shoot at each other, but not hurt each other.

Bot fights a player
    bot.setAimObject(localclientconnection.player);
    bot.setImageTrigger(0,1);

It will shoot at you, but not hurt you. You also cannot hurt it.

Make bot aim higher
bot.setAimLocation(VectorAdd(bot2.getPosition(),"0 0 1"));

Kill bots
    bot.kill();
    bot2.kill();

Make bots follow player
   bot.setMoveObject(localclientconnection.player);

Give bot a name
  bot.setShapeName("Name Here");

Players don't have health bars in v10 when you move your mouse over them.

Make bot walk around randomly
This command is unavailable in v10, unfortunantly.

Get guns
Simply place a brick and use the Wrench on it. You can spawn items from there. Place the Vehicle Spawn brick in the Special tab to create vehicles.

all this bot stuff is very fun but can some one tell me the Patrolbot script ?

sorry if i'm bumping a topic too old, but...

is there a way to make the bots able to be affected by events, or join a minigame?



What?

Let me guess, Space Guy's bots + RC Controller?

Actually the RC controler was just a prop.

And the bot was created through my own personal script.