Warcraft III resources & community, 2003–2006 · archived

Visibility modifiers won't go away

17 posts
#16
Uhh... don't think you quite understood what I said. It's working fine now, I just had to make a separate modifier for each player. I used a different variable for each modifier. The problem had nothing to do with removing one of multiple modifiers, it was that it won't disable a modifier if it pertains to more than one player, for some reason. But that's all besides the point, I have it working fine now.

And by copy and paste I meant I made a modifier for one player, then copied and pasted it and changed it to pertain to the next player, etc. so that I wouldn't need to make each function from scratch.
#17
well, if it works it works, i was just saying a non-generalized solution (ie copied for each player) is generally less elegant than a single function that performs for all players (or a subset depending on what you send it)

but still, the little blurb i wrote is what creates a modifier for each player and will destroy the modifiers for each player without having to copy anything, and in about 8 short lines...you just have to use a loop and a vis modifier array

but again, if it works it works