Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function widget:GetInfo()
- return {
- name = "Hello Unit",
- desc = "print a message when a unit is created",
- author = "knorke",
- date = "2012",
- license = "free for horse riding",
- layer = 0,
- enabled = true
- }
- end
- function widget:UnitCreated(unitID, unitDefID, teamID, builderID)
- Spring.Echo ("hello unit!")
- Spring.Echo ("the unitDefID is " .. unitDefID)
- Spring.Echo ("the unitID is " .. unitID)
- Spring.Echo ("the unit belongs to team " .. teamID)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement