I always wanted to contribute to easylua and now I see my chance!
Added a "them" option to target everyone around you, besides yourself.
Added a function to convert the CreateAllFunctions to usable tables. (Example below.)
for _,v in next, T(bots) do v:SetPos(v:GetPos()+Vector(0,0,100)) end
WARNING READ BEFORE MERGING: This is currently only tested using the following chat commands...
!l them = CreateAllFunction(function(v) return table.HasValue(we, v) and me ~= v end)!l function T(val) local vals = {} for _,v in next, val.__index() do table.insert(vals,v.ent) end return vals end!l for _,v in next, T(us) do v:SetPos(v:GetPos()+Vector(0,0,500)) end!l them:TakeDamage(100)
I will update this post when I've officially tested it!
I always wanted to contribute to easylua and now I see my chance!
WARNING READ BEFORE MERGING: This is currently only tested using the following chat commands...
!l them = CreateAllFunction(function(v) return table.HasValue(we, v) and me ~= v end)
!l function T(val) local vals = {} for _,v in next, val.__index() do table.insert(vals,v.ent) end return vals end
!l for _,v in next, T(us) do v:SetPos(v:GetPos()+Vector(0,0,500)) end
!l them:TakeDamage(100)
I will update this post when I've officially tested it!