Jump to content

Please Help With Destroying This Box


Zaļais

Recommended Posts

Posted (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 by Zaļais
Posted

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.

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...