Zaļais Posted February 9, 2017 Share Posted February 9, 2017 (edited) ---How do i destroy this box in element with timer ? i'm new in scripting please help me hope u will help me phanks setTimer(destroyair,60000,1) function drop (box = createObject(944,xq,yq,zq, 0, 0, 0) airdrop = createColSphere(xq,yq,zq,2) attachElements (airdrop,produc tq,0,0,0) setElementData(airdrop,"parent",object) setElementData(airdrop,"hospitalbox",true) setElementData(airdrop,"MAX_Slots",20) for i,items in ipairs(lootItems["aloot"]) do local randomNumber = math.random(1,10) if randomNumber >= 2 then setElementData(airdrop,items[1],math.random(1,5)) Edited February 9, 2017 by Zaļais Link to comment
3aGl3 Posted February 9, 2017 Share Posted February 9, 2017 Can you post the entire function? There are clearly parts missing... Also please use the code function next time you post code to the forum. Link to comment
Angelo. Posted February 9, 2017 Share Posted February 9, 2017 Please read the following topic on how to properly ask for help 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