DiosSasuke Posted April 29, 2018 Share Posted April 29, 2018 Necesito ayuda¿Cómo hago que mi ped ataque a mis enemigos y no a mí y cómo hago para que desaparesca cada cierto tiempo? Por favor ayudenme isobu = createTeam("isobu",255,0,0) function isobu(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, isobu ) objeto = createObject(2780, px,py,pz) setTimer(destroyElement, 2000, 1, objeto) setPedAnimation(thePed, "ped", "block") local isob = exports [ "slothbot" ]:spawnBot ( px, py + 2, pz, 0, 302, 0, 0, isobu, 37, "hunting", true ) end addCommandHandler("kuchiyose-isobu3", isobu) Link to comment
~Hades~ Posted April 30, 2018 Share Posted April 30, 2018 (edited) Para activar el bot me parece que es: setBotAttackEnabled( element theBot, bool enabled) o puedes usar: setBotChase ( element theBot, element theTarget ) Para buscar algún objetivo en especifico Aqui te dejo el link de todas las funciones que exporta slothbot.https://wiki.multitheftauto.com/wiki/Slothman/Slothbot#Server_Functions Edited April 30, 2018 by ~Hades~ Link to comment
DiosSasuke Posted April 30, 2018 Author Share Posted April 30, 2018 Por favor me podrias dar un ejemplo? es que soy nuevo en esto Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now