19 lines
614 B
Markdown
19 lines
614 B
Markdown
# 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);
|
||
});
|
||
}
|
||
```
|