I want to apply the whiteout affect to every player within a certain radius when an explosion goes off, but its not working.
function SLCZProjectile::onExplode(%this,%obj,%flash)
{
parent::onExplode(%this, %obj); //explode once
%this.schedule(800, "Boom", %obj, 1); //then explode again
initContainerRadiusSearch(%obj.getPosition(),10,$TypeMasks::PlayerObjectType);
for(%num=0; %num<%flash; %num++)
{
%obj.setWhiteout(0.25);
}
}
Ignore the first two lines, they're for something else
Console says "unable to find object: ' ' attempting to call function 'getPosition'", so obviously I'm using the containersearch wrong, but I don't know what about it is wrong
help would be appreciated