Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Checking if a player is within a weapon's projectile explosion radius?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Checking if a player is within a weapon's projectile explosion radius? (Read 1463 times)
Tezuni 2.0
October 30, 2014, 09:36:46 PM
Is there a way to check if a player is within a weapon's projectile explosion radius when the projectile impacts and explodes?
Ad Bot
Advertisement
Thorfin25
October 30, 2014, 10:26:13 PM
You could parent when the player gets damaged, and check for the type of damage.
$trinick
October 30, 2014, 10:34:44 PM
YourProjectile::onExplode(%dataBlock, %this)
initContainerRadiusSearch(%this.getPosition(), radius, $TypeMasks::PlayerObjectType);
while(%player = containerSearchNext())
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Checking if a player is within a weapon's projectile explosion radius?