sc1mod的选择人族后生成scv的例子:spawnUnits:scv*3(offsetX=-36,offsetY=70,offsetRandomDir=360,addResources=setFlag:2),scv*3(offsetX=-12,offsetY=70,offsetRandomDir=360,addResources=setFlag:2),scv*3(offsetX=12,offsetY=70,offsetRandomDir=360,addResources=setFlag:2),scv*3(offsetX=36,offsetY=70,offsetRandomDir=360,addResources=setFlag:2)
关键就在两个offset,必须一个一个写
也可以不直接用spawnunit,用抛射物来生成单位,可以比较均匀的自动分布
例子:
[hiddenAction_onCreate]
autoTriggerOnEvent: created
fireTurretXAtGround: spawner
fireTurretXAtGround_withOffset: 0,0
fireTurretXAtGround_count:10
[turret_spawner]
x: 0
y: 0
canShoot: false
invisible: true
size:0
projectile:spawner
[projectile_spawner]
directDamage:0
life: 150
speed: 99
drawType: 2
frame: 1
drawSize: 0
hitSound: false
targetGround:true
largeHitEffect: false
spawnUnit: CrystalsNotSpawning(gridAlign=true, skipIfOverlapping=true)
targetGroundSpread: 150
explodeEffect: NONE
关键就在两个offset,必须一个一个写
也可以不直接用spawnunit,用抛射物来生成单位,可以比较均匀的自动分布
例子:
[hiddenAction_onCreate]
autoTriggerOnEvent: created
fireTurretXAtGround: spawner
fireTurretXAtGround_withOffset: 0,0
fireTurretXAtGround_count:10
[turret_spawner]
x: 0
y: 0
canShoot: false
invisible: true
size:0
projectile:spawner
[projectile_spawner]
directDamage:0
life: 150
speed: 99
drawType: 2
frame: 1
drawSize: 0
hitSound: false
targetGround:true
largeHitEffect: false
spawnUnit: CrystalsNotSpawning(gridAlign=true, skipIfOverlapping=true)
targetGroundSpread: 150
explodeEffect: NONE









