Jump to content

Zona de BOT


Plate

Recommended Posts

function zona() 
createColCuboid ( 189.61836242676, 1979.748535355163, 17066425, 220, 200, 60 ) 
slothbot = exports [ "slothbot" ]:spawnBot ( 189.61836242676, 1979.748535355163, 17066425, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true) 
 exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
end 
addEventHandler("onZombieWasted",getRootElement(),zona) 
  

Link to comment
local colshape = createColCuboid ( 189.61836242676, 1979.748535355163, 17066425, 220, 200, 60 ) 
  
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        slothbot = exports [ "slothbot" ]:spawnBot ( 189.61836242676, 1979.748535355163, 17066425, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
    end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 

Link to comment

Solid pero se ahora como aria para que spawnee cuando el player entra a la zona y se ponga a matar zombies ejemplo

Jugador_x entra a esa zona aparecen zombies empiesa a matar zombies y de la nada aparece el bot se puede?

Link to comment
Solid pero se ahora como aria para que spawnee cuando el player entra a la zona y se ponga a matar zombies ejemplo

Jugador_x entra a esa zona aparecen zombies empiesa a matar zombies y de la nada aparece el bot se puede?

if ( getElementType ( thePlayer ) == "player" ) then 

O tambien getPlayerName

Link to comment
NOD eso que me pasastes lo agrego o remplazo el
  if ( isElementWithinColShape ( source, colshape ) ) then 

y sirve para lo que yo pedi ? o tengo que agregar mas cosas

Tu lo que quieres es que diga el nombre del player , o que solo diga " Has entrado a la base"? por asi decirlo

Link to comment
local colshape = createColCuboid ( -1916.9927978516, 1182.4553222656, 46.214420318604, 220, 200, 60 ) 
 createRadarArea ( -1916.9927978516, 1182.4553222656, 220, 200, 0, 0, 0, 100 ) -- esto lo cree para saber donde esta el area 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        slothbot = exports [ "slothbot" ]:spawnBot ( -1787.2111816406, 1216.2250976563, 32.65625, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
outputChatBox("Prueva 1") 
local myBlip = createBlipAttachedTo ( slothbot, 23 ) 
local zk = onZombieWasted 
if zk >= 30 then 
end 
    end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 

Link to comment
local colshape = createColCuboid ( -1916.9927978516, 1182.4553222656, 46.214420318604, 220, 200, 60 ) 
 createRadarArea ( -1916.9927978516, 1182.4553222656, 220, 200, 0, 0, 0, 100 ) -- esto lo cree para saber donde esta el area 
function zona ( ) 
    if ( isElementWithinColShape ( source, colshape ) ) then 
        slothbot = exports [ "slothbot" ]:spawnBot ( -1787.2111816406, 1216.2250976563, 32.65625, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) 
        exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) 
outputChatBox("Prueva 1") 
local myBlip = createBlipAttachedTo ( slothbot, 23 ) 
local zk = Zombie kills -- asi? 
if zk >= 30 then 
end 
    end 
end 
addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", getRootElement(), zona ) 

Link to comment
  • Recently Browsing   0 members

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