|
楼主 |
发表于 2011-3-20 08:06:24
|
显示全部楼层
引用第1楼愛婼メ媋楓于2011-03-20 07:35发表的 :
那就在地图初始化的时候放置单位,同时设置变量
这个....能具体说明一下吗?
[jass]
function CreateUnitsForPlayer1 takes nothing returns nothing
local player p = Player(1)
local unit u
local integer unitID
local trigger t
local real life
set u = CreateUnit( p, 'hpea', -636.6, 190.3, 12.239 )
set u = CreateUnit( p, 'hpea', -480.0, 185.1, 88.684 )
set u = CreateUnit( p, 'hpea', -224.2, 172.0, 75.226 )
set u = CreateUnit( p, 'hpea', 83.8, 159.0, 2.318 )
set u = CreateUnit( p, 'hpea', 294.9, 190.3, 182.181 )
set u = CreateUnit( p, 'hpea', -629.2, -166.3, 248.716 )
set u = CreateUnit( p, 'hpea', -448.5, -157.7, 228.424 )
set u = CreateUnit( p, 'hpea', -272.8, -159.9, 259.219 )
set u = CreateUnit( p, 'hpea', 20.2, -133.8, 119.612 )
set u = CreateUnit( p, 'hpea', 284.2, -136.0, 311.054 )
endfunction
[/jass] |
|