武装突袭3

武装突袭3

Zombies and Demons
(GC) DaffyDub 2016 年 11 月 30 日 下午 6:17
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^^
< >
正在显示第 1 - 9 条,共 9 条留言
(GC) DaffyDub 2016 年 12 月 1 日 上午 2:37 
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 2016 年 12 月 1 日 下午 10:41 
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 2016 年 12 月 2 日 上午 1:46 
Ok that sounds like an idea. Ill try that
(GC) DaffyDub 2016 年 12 月 2 日 上午 2:34 
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 2016 年 12 月 13 日 上午 7:07 
Dude if that actually works you are my hero ^^
(GC) DaffyDub 2016 年 12 月 13 日 上午 7:55 
Ok I offically have a new hero^^ thanks dude
最后由 (GC) DaffyDub 编辑于; 2016 年 12 月 13 日 上午 7:55
Goro 2017 年 1 月 2 日 上午 6:31 
引用自 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
最后由 Goro 编辑于; 2017 年 1 月 2 日 上午 6:32
Chuc 2017 年 5 月 14 日 下午 4:57 
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.
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50