Arma 3
Zombies and Demons
Attach zombie spawn on all players
I know that Im not the first onewith that question but how do I atach a Zombie spawner to a player unit? Its supposed to continiously spawn in zombies in a certain radius around the player.... Plz dont answer with: Check out google. Believe me I did!! Maybe Im just blind^^
< >
Showing 1-9 of 9 comments
(GC) DaffyDub 1 Dec, 2016 @ 2:37am 
Okay I figured out this : this setPos (getPos Joe3);(in this case Joe one is the name of one of my playable units) but it seams as if the location doesnt update correctly. When I move like half a click no zombies will spawn in anymore...
kill2die 1 Dec, 2016 @ 10:41pm 
you probably have put this into the "init" field, so it just gets initialized on game start, but you want to have this all the time.
so you could try to use attachTo, so the spawner should be attached to the player and moving(not quite sure if attachto works for this kind of objects)
(GC) DaffyDub 2 Dec, 2016 @ 1:46am 
Ok that sounds like an idea. Ill try that
(GC) DaffyDub 2 Dec, 2016 @ 2:34am 
Na that didnt work.. I tried a work around by placing triggers with getPos (setPosPlayer) but that only works in SP. When I try exchanging "Player" by Joe1(as told Joe1-5 are my main units) it doesnt work.An idea would be that the game creates a new unit after respawn which then doesnt have the name anymore.... Does the game delete the units name after a respawn? Its driving me nuts... I have my mission nearly done only this stuff is getting in my way.... 40 h of work now.....
(GC) DaffyDub 13 Dec, 2016 @ 7:07am 
Dude if that actually works you are my hero ^^
(GC) DaffyDub 13 Dec, 2016 @ 7:55am 
Ok I offically have a new hero^^ thanks dude
Last edited by (GC) DaffyDub; 13 Dec, 2016 @ 7:55am
Goro 2 Jan, 2017 @ 6:31am 
Originally posted by MB DaffyDub:
Ok I offically have a new hero^^ thanks dude

I know it's old, and I don't want to be diggin' it, but... Here you go:
Let me refer as this
spawner - spawner
unit1 - unit

while {alive unit1} do
{spawner setpos (getpos unit1); sleep 5;};

Place in init.sqf and should work like a charm.

My way should allow you to adjust the spawner to your liking
Last edited by Goro; 2 Jan, 2017 @ 6:32am
Chuc 14 May, 2017 @ 4:57pm 
i got this to work with

ZombieSpawn_1 attachTo [this, [0,0,0]];

i call the spawn module ZombieSpawn_1 and placed the above code in the units ini field. Works really well. Its very random with the spawning.
< >
Showing 1-9 of 9 comments
Per page: 1530 50