Files

19 lines
614 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# radiation_explosion.js — pulseSphere() (satır 270)
[← radiation_explosion.js](index.md) · [← Master](../../wiki.md)
```javascript
function pulseSphere(c, world, cx, cy, cz, n)
{
if (n >= PULSE_COUNT) return;
drawSphere(world, cx, cy, cz, RADIATION_RADIUS, RADIATION_RADIUS);
// Sadece görsel — hasar radiationDamage() tarafından veriliyor (patlatan muaf)
world.playSound("minecraft:entity.generic.explode", cx, cy, cz, 2.0, 0.3);
c.scheduleScript(PULSE_INTERVAL, function (ctx) {
pulseSphere(ctx, ctx.getWorld(), cx, cy, cz, n + 1);
});
}
```