Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function widget:UnitCreated(unitID, unitDefID, unitTeam)
- local ud = UnitDefs[unitDefID]
- if ((ud ~= nil) and (unitTeam == Spring.GetMyTeamID())) then
- if (ud.canStockpile && ud.unitName == "esilo") then
- -- give stockpilers 100 units to build
- Spring.GiveOrderToUnit(unitID, CMD.STOCKPILE, {}, { "shift" })
- else
- Spring.Echo("Waffles!!!")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment