NIKO_19997 Posted February 28, 2014 Posted February 28, 2014 hola, que funciones puedo usar para que cuando un usuario ataque a un ped, el ped devuelva el ataque? Saludos y Espero me puedan ayudar
Alexs Posted February 28, 2014 Posted February 28, 2014 Prueba con 'setPedControlState' y 'setPedAimTarget'.
NIKO_19997 Posted March 1, 2014 Author Posted March 1, 2014 Prueba con 'setPedControlState' y 'setPedAimTarget'. Gracias, avisare si me anda
NIKO_19997 Posted March 1, 2014 Author Posted March 1, 2014 que ise mal? cliente function disparo () local soldado = setPedControlState ( soldado, "fire" , true ) setPedAimTarget ( soldado , 10 , 10 , 10 ) end no entendí muy bien las funciones
NIKO_19997 Posted March 1, 2014 Author Posted March 1, 2014 te falto el ped createPed lo creo por cmd en el server.lua ._.
Daniel1zD Posted March 1, 2014 Posted March 1, 2014 a ok deja empiezo hacer pruebas y te lo paso ^^ sorry no sabia que era por cmd
Alexs Posted March 1, 2014 Posted March 1, 2014 que ise mal? cliente function disparo () local soldado = setPedControlState ( soldado, "fire" , true ) setPedAimTarget ( soldado , 10 , 10 , 10 ) end no entendí muy bien las funciones La función 'setPedControlState' devuelve un boolean, no un ped.
Recommended Posts