Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/survivalofthefittest_triggers.js
Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | for (let templateName in attackerCount) | ||||
let entities = TriggerHelper.SpawnUnits(point, templateName, attackerCount[templateName], 0); | let entities = TriggerHelper.SpawnUnits(point, templateName, attackerCount[templateName], 0); | ||||
ProcessCommand(0, { | ProcessCommand(0, { | ||||
"type": "attack-walk", | "type": "attack-walk", | ||||
"entities": entities, | "entities": entities, | ||||
"x": targetPos.x, | "x": targetPos.x, | ||||
"z": targetPos.y, | "z": targetPos.y, | ||||
"targetClasses": undefined, | "targetClasses": undefined, | ||||
"allowCapture": false, | "prefAttackTypes": ["!Capture"], | ||||
"queued": true | "queued": true | ||||
}); | }); | ||||
if (isHero) | if (isHero) | ||||
this.gaiaHeroes[playerID] = entities[0]; | this.gaiaHeroes[playerID] = entities[0]; | ||||
} | } | ||||
spawned = true; | spawned = true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator