Alexs Posted July 18, 2012 Posted July 18, 2012 Hola a Todos, se que es complicado y todo pero conocen alguna manera de hacer que un ped me siga, que no ataque ni nada, solo que me siga? Developer @ MYVAL
Castillo Posted July 18, 2012 Posted July 18, 2012 setPedControlState + onClientRender San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted July 18, 2012 Author Posted July 18, 2012 Perdon mi ignorancia, pero si utilizo setPedTarget junto al control "sprint" funcionaria? Developer @ MYVAL
Castillo Posted July 18, 2012 Posted July 18, 2012 Esa funcion no existe. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted July 18, 2012 Author Posted July 18, 2012 setPedAimTarget Esa si , quiero hacer que un ped me siga y que aparezca al yo usar un comando y quiza mas adelante que suba a un auto, pero no se siquiera hacer que me siga. Developer @ MYVAL
Castillo Posted July 18, 2012 Posted July 18, 2012 Tenes que obtener la rotacion del jugador y cambiarla cada render, asi siempre esta mirandote. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted July 18, 2012 Author Posted July 18, 2012 Ok!, una ultima duda, si creo un ped en client side y le pongo la accion en client side, solo se yo lo veria, verdad? Developer @ MYVAL
Castillo Posted July 18, 2012 Posted July 18, 2012 Si el ped lo creaste client side, pues solo tu lo veras. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted July 18, 2012 Author Posted July 18, 2012 Y para hacer que todos lo vean y que se mueva?? por lo que veo el control se pone en client side Developer @ MYVAL
Castillo Posted July 18, 2012 Posted July 18, 2012 Crea el ped server side, luego dale un ID con: setElementID, luego en el client side lo obtenes para obterlo con: getElementByID. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted July 18, 2012 Author Posted July 18, 2012 ... y luego solo le pongo el control "forward" hacia mi con onClientRender y getElementRotation! Gracias Developer @ MYVAL
Castillo Posted July 18, 2012 Posted July 18, 2012 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted July 18, 2012 Author Posted July 18, 2012 Me aparecio otra duda, como hago que me siga a mi y consiga mi rotacion y no la de otros jugadores conectados? Developer @ MYVAL
Recommended Posts