Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function widget:GetInfo()
- return {
- name = "II factory autoque scout",
- desc = "queueue scout in plopped facory",
- author = "knorke",
- version = "1",
- date = "Feb 2014",
- license = "taking the t out of rts",
- layer = -1,
- enabled = true,
- handler = true
- }
- end
- function widget:UnitCreated(unitID, unitDefID, teamID, builderID)
- if (UnitDefs[unitDefID].isFactory) then --DANGER: 91.0 / 96.0
- local uBuilds = UnitDefs[unitDefID].buildOptions
- Spring.GiveOrderToUnit (unitID,-uBuilds[2],{},{})
- Spring.GiveOrderToUnit (unitID,-uBuilds[2],{},{})
- widgetHandler:RemoveWidget(self)
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement