Jump to content

[Ayuda] Slotboth - Pelean entre ellos


Narutimmy

Recommended Posts

Posted

Hola miren lo que susece es que mmm... si yo pongo 2 slotboth 1 aun lado del otro comenzaran a pelear entre ellos, bueno como puedo yo hacer para que no lo agan?

Ya que el DayZ usa slothbot en lugar de zombis normales y pues no e visto que se pelen entre ellos.

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

  • Moderators
Posted

asignalos al mismo team

local team = getTeamFromName ( "el team") 
  
function elbot () 
    elbot = exports [ "slothbot" ]:spawnBot bla bla.. 
end 
  
  
addEventHandler("onBotSpawned",getRootElement(), 
function ( ) 
    setBotTeam(elbot,team) 
end 
) 

 

Discord: cuervo_fi#9549

Posted

Te olvidaste de poner exports en setBotTeam, y tambien de usar "addEvent" para el evento: "onBotSpawned".

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 script de Cuervo no va a funcionar, ya que 'onBotSpawned' no existe como evento, es de slothbot y no lo añadió con 'addEvent'. Prueba con:

elteamdelbot = getTeamFromName ( "TEAM") 
function Crearbot () 
elbot = exports [ "slothbot" ]:spawnBot ( x, y, z, Rotation, Skin, Interior, Dimension,  Team?, Arma ID ) 
end 
  
addEvent("onBotSpawned", true) 
  
addEventHandler("onBotSpawned",getRootElement(), 
function ( ) 
    exports [ "slothbot" ]:setBotTeam(elbot,elteamdelbot) 
end 
) 

Se me adelantó Castillo mientras lo estaba escribiendo >__>

EDIT: No tienes porque usar 'setBotTeam', creo que podrías usar el argumento de 'spawnBot'.

Posted

Los slothbots son server side.

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.

  • Recently Browsing   0 members

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