function OnMapStart()
local u = CreateUnit(Player(0), 'hfoo', 0, 0, 270)
BlzSetUnitName(u, "Footy")
end
function luainit()
TimerStart (CreateTimer(), 00, false, OnMapStart)
end
I just tried to create one unit on map start.
Here is the text I copied to the custom script.
And an I mage below of the Lua Script made with VS code.
local u = CreateUnit(Player(0), 'hfoo', 0, 0, 270)
BlzSetUnitName(u, "Footy")
end
function luainit()
TimerStart (CreateTimer(), 00, false, OnMapStart)
end
I just tried to create one unit on map start.
Here is the text I copied to the custom script.
And an I mage below of the Lua Script made with VS code.