Author Topic: Bot spawning with different appearances?  (Read 2601 times)

Is it possible to create a single bot, but have it spawn with different appearances every time you spawn him?

Say you wanted to make a generic city type bot that spawns with random appearances that you set.

OnBotSpawn > Bot > setRandomAppearance
That should work.

No I'm trying to make a city bot that spawns with 10 different appearances every time the brick is placed or he is spawned, you know what I'm saying, that kinda thing.

Steal the code from the shark bot

Steal the code from the shark bot

Not very helpful, a simple code snippet would of been great.

If you use setrandomappearance and use the City option it will have a different appearance every time the bot respawns, ones that will fit for a city setting

I know that.. I'm trying to do that through code on my custom bot.

OnBotSpawn > Bot > setRandomAppearance>City
That should work.
It has over 10 options, I believe. This is exactly what you need.

I know that.. I'm trying to do that through code on my custom bot.

Put this in your onAdd function:

Code: [Select]
%obj.setRandomAppearance("City");

Put this in your onAdd function:

Code: [Select]
%obj.setRandomAppearance("City");

Ah I see how it works, this helps, but I'm trying to set it to pick 1 through 10 out fits that I set.

Like, if it randomly selects a number 1 through 10 it will choose those avatar options.

So you don't really want it to choose a random appearance, you want it to choose randomly from 10 preset appearances?