Author Topic: Checking if a player is within a weapon's projectile explosion radius?  (Read 1463 times)

Is there a way to check if a player is within a weapon's projectile explosion radius when the projectile impacts and explodes?

You could parent when the player gets damaged, and check for the type of damage.

YourProjectile::onExplode(%dataBlock, %this)

initContainerRadiusSearch(%this.getPosition(), radius, $TypeMasks::PlayerObjectType);

while(%player = containerSearchNext())