Darkneblade Posted March 16, 2017 Posted March 16, 2017 I want to create a healing field which increases client players health by 1 per second can anyone help ?
NeXuS™ Posted March 16, 2017 Posted March 16, 2017 (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 March 16, 2017 by Patrik91 Did I help you? NeXuS™#0001
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now