Jump to content

Ayuda destroyElement


Plate

Recommended Posts

Posted

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) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

  • MTA Team
Posted

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) 

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
Posted

Es que pregunte por que nose si el argumento thePickup existe lo demas anda ya lo testee

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Ya lo solucione era muy simple :3 gracias por tu ayuda igual

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

  • Recently Browsing   0 members

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