How do you make a spawnplate for AIs?

Hai!
Im making a zombie game…
And I got an animated zombie that follows the player and when he gets close he punshes the player…
So anyway, i would like to know, how can i script a box to copy that zombie and place it over the plate fully functional…

If you know how to do this then please reply :smiley:
Thanks:eyebrowlift:

Whats the plate?

Yes, please explain more. Do you want it to constantly spawn zombies, or when it receives a message, or…?

Oh, yea, i want it to be like a plate that every like 20 seconds spawns a zombie over that plate. if possible it would be better to have a script that engade the spawning but i think thats not possible…
Oh and the plate is just a normal sized plate that can be placed anywhere in the game where i would like the zombies to spawn…

Ok, first the terminology you are using is a bit alien to blender users. I’ve never heard the term plate in gaming before.

Any way, to do what you want to do create an empty (your “plate”) and then in the logic bricks set up what ever actuator you want and use an Edit Object -> Add object brick to add in your zombie. (you will need to use a few if he has things like an armature etc (I think) but add object is what you are looking for)

ahh, lolz, when i said plate i ment plane XD
well, thanks, il try that, but i think theres one problem with that…
If i copy the armature then copy the mesh, then the mesh wont be parented to the armature… So how do i fix that?

Move your zombie to an inactive layer (with the M key).

Now you just use the add object actuator to add the zombie. The value you put in the object field will be whatever is the “main parent” of the object… probably whichever one is dynamic.

If you want it to happen every so many seconds, you could have a timer property called “spawn”, then a property sensor that checks to see if that property is above 20, and then have that linked to 2 actuators, the add object actuator and a property actuator to set the timer back to 0.

Hope that helps!

-Sam

Ok, il try that later, but you talked about some property?
All i can see in my actuator is lingV and AngV
How do i change its position? Cuse right now it spawns inside the first zombie and then they both fly of map XD
So how do i access the zombies property?

Aww, it was blender that had messed it up so i had an extra copy of the zombie inside the zombie…
But now my spawnplate almoste works…
The only problem is that my zombie that gets created, in its mesh, which follows with the armature that i just created, i have an actuator called move
and it seems like that one gets erased because i get the error from my script: Couldnt find actuator “move”
You know why?

You won’t be using a zombie to add the objects… you’ll be using an empty.

See the example I posted below.

Attachments

spawn.blend (33.6 KB)

Thanks alot ammbassador =)
Now i did excacly as you had done in your blend example… Tho i copied bones instead…
But now for soem reason nothing happens,… no error no nothing…
And idk why

I really have no clue why it doesnt work… Iv tried change the time and so but it doesnt work…
Doesnt it work with armatureS?