Jump to content

Como usar blowVehicle con Slotbot


Narutimmy

Recommended Posts

Posted

Hola lo que pasa esque querio preguntar como puedo usar esa funciona para que cuando un slothbot ataque un auto (Mas que nada los tankes) lo explote de un solo golpe?

Asi es correcto?

---Matar 1 
function bot ( attacker ) 
 if attacker == slothbot1 then --Creo que 'tyrant' es la variable de tu 'BOSS' 
  if ( getElementType ( attacker ) == "ped" ) then 
   killPed ( source, attacker ) 
   blowVehicle ( source ) 
  end 
 end 
end 
addEventHandler("onPlayerDamage", getRootElement(), bot) 

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted
Eso me complica aun mas, no se que evento podría serte útil.

lo que pasa es que el slothbot lo puse sin armas solo el puño, asi que se ponen a matarlo en tanke y quiero dificultarles las cosas

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

  • 3 weeks later...
Posted

No existe ningun evento para eso, lo unico que podes detectar son los disparos usando el evento onClientPlayerWeaponFire.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
No existe ningun evento para eso, lo unico que podes detectar son los disparos usando el evento onClientPlayerWeaponFire.

mmmm pero el puño es arma no? es la 0?

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

Si, pero no dispara, osea que no se envia ese evento.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
Si, pero no dispara, osea que no se envia ese evento.

mmm no existe otro evento?

---Autos 
function bot2 ( attacker ) 
 if attacker == slothbot1 then  
  if ( getElementType ( attacker ) == "ped" ) then 
   blowVehicle ( source ) 
  end 
 end 
end 
addEventHandler("onClientPedWeaponFire", getRootElement(), bot2) 

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

No que yo sepa.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
No que yo sepa.

mmm.... y hacer que si el boss esta a menos de 1 metro el auto explote aonque no lo toque?

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

Para eso lo que podrias hacer es pegarle un colshape al bot, y al entrar un elemento en el colshape, si es un vehiculo, lo haces explotar.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
El evento esta mal, solo es para Peds, usa:

https://wiki.multitheftauto.com/wiki/OnC ... WeaponFire

PD: Es lo mas cercano que se me ocurre para detectar disparos a un vehículo desde un Ped, eso o editar el slothbot.

Ese evento es client-side y por lo que se el tiene un script server-side ya que tiene killPed. Podrias usar: onVehicleDamage

https://wiki.multitheftauto.com/wiki/OnVehicleDamage

State: Inactive

  • Recently Browsing   0 members

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