Multi-group membership for droids?
Re: Multi-group membership for droids?
+1 for the example of a use for .group property, NullBot uses that to make attacked groups react collectively.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
Re: Multi-group membership for droids?
Ok, added .group to features and structures as well.
As for groupAddArea(), it is unchanged; meaning it still only adds droids in the area to your group. Changing it would make things incompatible, which would be a big no-no. The function is somewhat redundant, though, since you can do the same with enumRange() and groupAdd(), just with more control (and possibly faster for smaller areas).
As for groupAddArea(), it is unchanged; meaning it still only adds droids in the area to your group. Changing it would make things incompatible, which would be a big no-no. The function is somewhat redundant, though, since you can do the same with enumRange() and groupAdd(), just with more control (and possibly faster for smaller areas).