Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- playerBuildingList = {}
- function AddObject(h)
- if GetTeamNumber(h) == 1 then
- if IsOdf(h, "abbarr") or IsOdf(h, "abspow") or IsOdf(h, "ablpow") or IsOdf(h, "abwpow") or IsOdf(h, "ablpad") or IsOdf(h, "abmbld") or IsOdf(h, "abhang") or IsOdf(h, "abshld") or IsOdf(h, "abstor") or IsOdf(h, "absupp") or IsOdf(h, "abhqcp") or IsOdf(h, "abcomm") or IsOdf(h, "absilo") or then
- table.insert(playerBuildingList, h)
- end
- end
- end
- --accepts a handle object
- function setAttackers(h)
- if IsAliveAndPilot(GetNearestEnemy(h)) then
- if IsWithin(h, GetNearestEnemy(h), 200) then
- Attack(GetNearestEnemy(h), h, 1)
- end
- end
- end
- --accepts an integer value
- function removeEntry(i)
- if not IsValid(t[i]) then
- table.remove(playerBuildingList, i)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment