StanMarsh Posted June 24, 2013 Share Posted June 24, 2013 Hola, tengo un problema que no se por que pasa y no se como corregir asi que vine a preguntar aqui, bueno el problema es que al caer de algo por lo menos 10 centimetros de altura o mas te mata te baja la vida de repente osea toda pense que el problema estaria en algo del boss pero quiero saber como corregirlo aqui lo que pienso que es el problema: function bot ( attacker ) if attacker == slothbot1 then -- killPed ( source, attacker ) end end Link to comment
Castillo Posted June 24, 2013 Share Posted June 24, 2013 No entiendo el problema, ademas de que ese script no todo lo que tenes. Link to comment
NodZen Posted June 24, 2013 Share Posted June 24, 2013 No te entiendo bien. No será problema de la gravedad? Link to comment
StanMarsh Posted June 24, 2013 Author Share Posted June 24, 2013 Ya lo solucione era el script del boss que interferia por que habia puesto que al un player acercarse muriera pero se daño y al caer morias aunque fueran 10 centimetro Link to comment
Narutimmy Posted June 25, 2013 Share Posted June 25, 2013 me pasaba creo lo sacastes de uno de los temas donde pregunte como hacer para que el slotbot mate de 1, y tenia ese problema que mataba 1 pero si te caes o algo pro el estilo mueres... el codigo era asi: Lo tienes asi: function bot ( attacker ) if attacker == slothbot1 then -- killPed ( source, attacker ) end end pero es asi: ---Matar 1 function bot ( attacker ) if attacker == slothbot1 then -- if ( getElementType ( attacker ) == "ped" ) then killPed ( source, attacker ) end end end addEventHandler("onPlayerDamage", getRootElement(), bot) Link to comment
StanMarsh Posted June 25, 2013 Author Share Posted June 25, 2013 me pasaba creo lo sacastes de uno de los temas donde pregunte como hacer para que el slotbot mate de 1, y tenia ese problema que mataba 1 pero si te caes o algo pro el estilo mueres... el codigo era asi:Lo tienes asi: function bot ( attacker ) if attacker == slothbot1 then -- killPed ( source, attacker ) end end pero es asi: ---Matar 1 function bot ( attacker ) if attacker == slothbot1 then -- if ( getElementType ( attacker ) == "ped" ) then killPed ( source, attacker ) end end end addEventHandler("onPlayerDamage", getRootElement(), bot) Ohhh gracias y si es que tenia mitad del script que habia hecho yo pero me faltaba aun y no sabia como aserlo y un amigo me dio uno y no se si era ese pero gracias Link to comment
Recommended Posts