Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local teams = Spring.GetTeamList()
- for i =1, #teams do
- local luaAI = Spring.GetTeamLuaAI(teams[i])
- if luaAI ~= "" then
- if luaAI == "Chicken: Very Easy" or
- luaAI == "Chicken: Easy" or
- luaAI == "Chicken: Normal" or
- luaAI == "Chicken: Hard" or
- luaAI == "Chicken: Very Hard" or
- luaAI == "Chicken: Epic!" or
- luaAI == "Chicken: Custom" or
- luaAI == "Chicken: Survival" then
- chickensEnabled = true
- end
- end
- end
- if chickensEnabled == true then
- Spring.Echo("[ChickenDefense: Chicken Defense Spawner] Activated!")
- else
- Spring.Echo("[ChickenDefense: Chicken Defense Spawner] Deactivated!")
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement