Advertisement
Guest User

Untitled

a guest
Mar 30th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. function widget:GetInfo()
  2. return {
  3. name = "II factory autoque scout",
  4. desc = "queueue scout in plopped facory",
  5. author = "knorke",
  6. version = "1",
  7. date = "Feb 2014",
  8. license = "taking the t out of rts",
  9. layer = -1,
  10. enabled = true,
  11. handler = true
  12. }
  13. end
  14.  
  15. function widget:UnitCreated(unitID, unitDefID, teamID, builderID)
  16. if (UnitDefs[unitDefID].isFactory) then --DANGER: 91.0 / 96.0
  17. local uBuilds = UnitDefs[unitDefID].buildOptions
  18. Spring.GiveOrderToUnit (unitID,-uBuilds[2],{},{})
  19. Spring.GiveOrderToUnit (unitID,-uBuilds[2],{},{})
  20. widgetHandler:RemoveWidget(self)
  21. return
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement