Jump to content
Sign in to follow this  
person915

Making a Group Invincible via Trigger

Recommended Posts

I have a radio trigger set up to be able to grant invincibility to a single unit, the intention to be able to turn it on and off for sakes of testing the mission when it's further in development, but I need it to make the whole GROUP invincible. The group is defined as group1, (group1 = groupthis) in the leader's init field, but simply putting group1 allowdamage false doesn't work; I assume it wants something along the lines of _x foreachmember allowdamage false group1 or something like that, but I really don't know how to write it. I could just give all the units a name and use a WHOLE BUNCH of script lines in the trigger, but I feel learning this would be a better thing to do as the concept may come in useful later.

Thanks a bunch, you clever scripting devils you! I might never know how you do it.

Share this post


Link to post
Share on other sites

Something like this should work.

{_x allowdamage false} foreach units group1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×