dont use this it causes memory crash i have a fix but ill test it before i post it
scratch that ill just post back here if it breaks
this seems to work so far...
for name, ud in pairs(UnitDefs) do
if ud.featuredefs then
for _, wd in pairs(ud.featuredefs) do
if wd.object then
wd.object = [[emptyModel.s3o]]
end
end
end
if ud.featuredefs then
for _, wd in pairs(ud.featuredefs) do
if wd.blocking then
wd.blocking = [[false]]
end
end
end
end
no more lag and it leaves the reclaim on the ground but its hard to find because its invisible
Zm9yIG5hbWUsIHVkIGluIHBhaXJzKFVuaXREZWZzKSBkbwogIGlmIHVkLmZlYXR1cmVkZWZzIHRoZW4KICAgIGZvciBfLCB3ZCBpbiBwYWlycyh1ZC5mZWF0dXJlZGVmcykgZG8KICAgICAgaWYgd2Qub2JqZWN0IHRoZW4KICAgICAgICB3ZC5vYmplY3QgPSBbW2VtcHR5TW9kZWwuczNvXV0KICAgICAgZW5kCiAgICBlbmQKICBlbmQKICBpZiB1ZC5mZWF0dXJlZGVmcyB0aGVuCiAgICBmb3IgXywgd2QgaW4gcGFpcnModWQuZmVhdHVyZWRlZnMpIGRvCiAgICAgIGlmIHdkLmJsb2NraW5nIHRoZW4KICAgICAgICB3ZC5ibG9ja2luZyA9IFtbZmFsc2VdXQogICAgICBlbmQKICAgIGVuZAogIGVuZAplbmQ=