RekZ Posted December 21, 2012 Share Posted December 21, 2012 que deveria usar para que cuando cree dos Bots no se maten entre si ( con slothbot ) por ejemplo yo creo 2 bot bot1 y bot2 pero en vez de atacarme ami se atacan entre ellos , yo quiero que me ataquen ami y no entre ellos Link to comment
Plate Posted December 21, 2012 Share Posted December 21, 2012 fijate si podes con setBotTeam obiamente exportandolo Link to comment
Alexs Posted December 21, 2012 Share Posted December 21, 2012 Antes de pedir ayuda acá, te recomiendo mirar la Wiki, muchas veces tiene respuestas claras y acá solo acabamos por citarlas. Respecto a la cooperación por equipos: Cooperation: Bots can automatically team up with teammates (either player or bot) by meeting up with them and sticking together Para cambiarlos de Team: setBotTeam changes the bot's team and loyalties Syntax bool setBotTeam ( element theBot, team theTeam ) Required Arguments - theBot: The bot you want to change the team of - theTeam: The team the bot should join En caso de que quieras que no maten a otro Bot aunque este no este en su team. onBotFindEnemy This triggers when a bot locates an enemy, This event can be cancelled to prevent the bot from chasing players Parameters - element enemy - enemy: The Player or Ped the bot has spotted Source The source of this event is the Bot that has found an enemy De esta ultima no estoy muy seguro por su descripción, pero siempre puedes editar el recurso para que haga lo que desees. Link to comment
RekZ Posted December 22, 2012 Author Share Posted December 22, 2012 e_e mire la wiki antes ke nada no soy gilipoyas... ni retrasado ademas ahora no se puede pedir ayuda... o ke... , pero como lo intente varias veces con setbotteam decidi pedirla , aunque ya lo consegi gracias igualmente por vuestra atencion Link to comment
Castillo Posted December 22, 2012 Share Posted December 22, 2012 Probaste creando los dos bots en el mismo team al principio? Link to comment
RekZ Posted December 22, 2012 Author Share Posted December 22, 2012 no , al principio los puse sin team supuse que no haria falta asta que me encontre el problema , asi que añadi los bots al team de "zombis" ( que uso para los zombis logicamente ) aunque ahora no ataca a los zombis , ya solucionare eso mas adelante por ahora no me es urgente Link to comment
Recommended Posts