Jump to content

Healing Field (need help)


Recommended Posts

Posted (edited)
local colSphere = createColSphere(0, 0, 0, 20)
setTimer(function()
    for i, k in ipairs(getElementsWithinColShape(colSphere)) do
      if getElementType(k) == "player" then
        if getElementHealth(k) < 100 then
          setElementHealth(k, getElementHealth(k)+1)
        end
      end
    end
end, 1000, 0)

Should work. If any error appears, feel free to ask here.

Edited by Patrik91

6C73yFv.png

Did I help you?

Mmpe7Jm.gif


NeXuS™#0001

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...