Daniels69 Posted March 11, 2017 Share Posted March 11, 2017 I'm wondering how do i check if the tent is empty (in dayz)? Have no idea.. maybe some one knows? the part what i've made for _,col in ipairs(getElementsByType("colshape")) do if getElementData(col, "tent") then local tent = getElementData(col, "parent"); if tent then local x,y,z = getElementPosition(tent); local rX,rY,rZ = getElementRotation(tent); i just want to check if the tent is empty, and then delete it.. can any one help me with this? Link to comment
NeXuS™ Posted March 13, 2017 Share Posted March 13, 2017 (edited) You could cycle through all items via a for cycle and if every item equals to 0 in it, just delete it. Edited March 13, 2017 by Patrik91 Link to comment
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