» Fri Feb 18, 2011 9:12 pm
Okay, the reason I asked is because I'm modifying the Coin Shot to create a spray of legion denarii (intact or mangled).
I successfully created the impact spray. However, it occurred to me... how would one clean them up on cell reset? I tested with the riot shottie, and after I emptied my WMX-expanded 20-round clip of coinshot, there were coins everywhere, even with my 60% chance of generating nothing.
I was thinking of having the activator actually be invisible and still zaps itself after doing its ditty, after either creating another activator that either creates the legion denarius or mangled denarius and remains active and disabled (disabled still runs scripts, right?), or is enabled and is actually a coin embedded in the wall that will either be an intact or mangled denarius, or just says "this coin is too mangled to recover" and self-zaps.
All the activators would zap themselves on cell reset (begin OnReset IIRC).
But I'm not sure how to put a PlaceAtMe'd ref into a ref variable. Is it "set (RefVariable) to PlaceAtMe (PlacedObject) (number)"?
Basically, I don't want to inadvertently bloat someone's game with painting the town red with coin shot.
Also, is there a way to detect if it actually hits someone and not just do its thing anywhere? The first activator would instead do nothing in that case and just self-zap.