Plate Posted April 23, 2013 Share Posted April 23, 2013 Hola tengo una duda si se puede hacer esto function destroyThePickup(thePickup) if (isElement(thePickup)) then if (source == thePickup) then setTimer(destroyElement, 1000, 1, thePickup) end end end addEventHandler("onPickupHit", getRootElement(), destroyThePickup) Link to comment
MTA Team 0xCiBeR Posted April 23, 2013 MTA Team Share Posted April 23, 2013 Pues puede que te ande(al menos eso parece a simple vista)... Igualmente lo cambiaria asi: function destroyThePickup(thePickup) if isElement(thePickup) then if (source == thePickup) then setTimer(destroyElement, 1000, 1, thePickup) end end end addEventHandler("onPickupHit", getRootElement(), destroyThePickup) Link to comment
Plate Posted April 23, 2013 Author Share Posted April 23, 2013 Es que pregunte por que nose si el argumento thePickup existe lo demas anda ya lo testee Link to comment
Plate Posted April 23, 2013 Author Share Posted April 23, 2013 Ya lo solucione era muy simple :3 gracias por tu ayuda igual Link to comment
Sasu Posted April 23, 2013 Share Posted April 23, 2013 Por que no te fijas la wiki y ya ._.? Link to comment
Recommended Posts