Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. for name, fd in pairs(FeatureDefs) do
  2. if(tonumber(fd["footprintz"]) <= 5 or tonumber(fd["footprintx"]) <= 5
  3. or string.lower(fd["category"]) == "vegitation" or string.lower(fd["category"]) == "vegetation") then
  4. fd["blocking"] = false
  5. if (not fd.customParams) then
  6. fd.customParams = {}
  7. end
  8. if (not fd.customParams.provide_cover) then
  9. fd.customParams.provide_cover = 1
  10. Spring.Echo("Feature["..name.."] is providing cover!")
  11. end
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement