Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
danny96

Spawned units are killing each other

Recommended Posts

Hello I'm wondering why are my spawned units killing each other.. they're supposed to be both EAST side.

 

I've created a trigger where are these statements:

 

1) Created group using this command

badguys = createGroup [EAST,false];

 

2) Created unit using this command & ordered it to search & kill player:

badguy1 = badguys createUnit ["LIB_GER_stggunner", spawner, [], 0, "FORM"];badguy1 move getpos player

 

If I spawn more of these guys using repeatable radio command they attack each other. How is that possible?

 

Thanks in advance.

Best regards.

Share this post


Link to post
Share on other sites

Try adding this and see what happens:

badguy1 = badguys createUnit ["LIB_GER_stggunner", spawner, [], 0, "FORM"];
[badguy1] joinSilent badguys;
badguy1 move getpos player;

 

Cheers

Share this post


Link to post
Share on other sites

Looks like it's working ! Thank you.

Share this post


Link to post
Share on other sites

×