Plate Posted August 3, 2012 Posted August 3, 2012 Hola quisiera saber como hacer para restartear una variable
Plate Posted August 3, 2012 Author Posted August 3, 2012 Se puede hacer para cuando un bot muera? zombiesMatados = 0 function restartear ( ) if ( isElementWithinColShape ( source, colshape ) ) then onZomieWasted = 0 end end addEventHandler( "onBotWasted",getRootElement(),restartear )
Castillo Posted August 3, 2012 Posted August 3, 2012 Queres decir esto: zombiesMatados = 0 function restartear ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = 0 end end addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted",getRootElement(), restartear )
Plate Posted August 4, 2012 Author Posted August 4, 2012 Funciona muchas gracias solid pero tengo una duda como puedo hacer para que se destruya un blip cuando un bot muere
Plate Posted August 4, 2012 Author Posted August 4, 2012 Ok muchas gracias denuevo una ultima duda como hago para que en el colshape no tenga una sola posicion z tenga todas
Plate Posted August 4, 2012 Author Posted August 4, 2012 function destroyblip() destroyElement(myblip) end addEventHandler("onBotWasted",getRootElement(),destroyblip)
Recommended Posts