Author Topic: RPG Build Help: Bots  (Read 486 times)

So I made a little typical RPG thing with variables for a movie I will soon be filming. There are "wild" womprats that are made with zombies.
Code: [Select]
On Bot Touch -> Bot -> ChangeDatablock -> Womprat
But the thing is, I might be hosting a server with this, and when you ride a horse onto the womprat spawn... the horse turns into a womprat. How can I prevent this from happening without building invisible walls around the spawns? (The womprats can't get out and it seems as if you are bumping against thin air.)

EDIT: Actually, that won't work if the bot dies.

ifDatablock event. You'll need that Variables thing, though...

onBotTouch -> Bot -> ChangeDatablock [Womprat]
onBotTouch -> Self -> setColliding [off]
And since zombies respawn...
onZombieDeath -> Self -> setColliding [on]

Ah yes, thank you guys.

Womprats running around the place...never thought about that.  Good job way to be original.  You may also need to know to set Zombies always find player: off or else the womprats will immediately attack (or at least try to attack) you.

Yeah, I turned it off. They don't attack, though. They just follow you if you get close to them, which is the idea.

Womprats running around the place...never thought about that.  Good job way to be original.  You may also need to know to set Zombies always find player: off or else the womprats will immediately attack (or at least try to attack) you.

Well, they can't attack, because they're not a zombie datablock. You can only be attacked by zombies.

And lol, this gives me an idea. Now I can make wild horses roaming around the place :D

Well, they can't attack, because they're not a zombie datablock. You can only be attacked by zombies.

And lol, this gives me an idea. Now I can make wild horses roaming around the place :D
Or use a city of Block player turned zombies to make it like a life of some sort.