Files

23 lines
630 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.
# NPC.js — lineUpSoldiers() (satır 430)
[← NPC.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](lineUpSoldiers.md)
```javascript
var depthOffset = row * LINE_GAP;
var tx = centerX + rightX * offset + fwdX * depthOffset;
var tz = centerZ + rightZ * offset + fwdZ * depthOffset;
var fy = findValidPosition(c.getWorld(), tx, pp.y, tz);
soldier.setPosition(tx, fy, tz);
var faceYaw = player.getYaw() + 180;
if (faceYaw > 360) faceYaw -= 360;
soldier.setRotations(0, faceYaw, faceYaw);
}
}
```