24 lines
619 B
Markdown
24 lines
619 B
Markdown
# TelekinesiLal.js — tickHold() (satır 259)
|
||
|
||
[← TelekinesiLal.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function tickHold(c, w, owner, target, s) {
|
||
s.tick++;
|
||
var hp = holdPoint(owner, s.tick);
|
||
|
||
breakBodyBlocks(w, s, hp.x, hp.y, hp.z, HOLD_BREAKS_PER_TICK);
|
||
target.setPosition(hp.x, hp.y, hp.z);
|
||
lockHard(target, hp.x, hp.y, hp.z);
|
||
noMotion(target);
|
||
|
||
if (s.tick % 4 === 0) {
|
||
targetAuraFx(w, hp.x, hp.y, hp.z, s.tick);
|
||
}
|
||
|
||
if (s.tick % 20 === 0) {
|
||
w.playSound(SOUND_HOLD, hp.x, hp.y + 1.0, hp.z, 0.25, 1.55);
|
||
}
|
||
}
|
||
```
|