Jump to content

Ayuda destroyElement


Plate

Recommended Posts

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...