Files

19 lines
523 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.
# 3NPC.js — spawnSoldiers() (satır 377)
[← 3NPC.js](index.md) · [← Master](../../wiki.md)
```javascript
function spawnSoldiers(c, player)
{
var p = player.getPosition();
for (var i = 0; i < SOLDIER_COUNT; i++)
{
var ox = (Math.random() - 0.5) * 2 * SPAWN_SPREAD;
var oz = (Math.random() - 0.5) * 2 * SPAWN_SPREAD;
c.executeCommand("mp npc summon 3N");
c.executeCommand("mp npc summon 3N");
c.executeCommand("mp npc summon 3N");
}
}
```