Search the Community
Showing results for tags 'zonenemesis'.
-
Hello, I am trying to create a Nemesis that is created with an area and that that area is adapted to the Nemesis but do not manage to do it a suggestion or help? server.lua function Boss ( ) NemesisRa = exports [ "slothBot" ]:spawnBot ( -2551.4892578125, 640.34375, 27.8125, 90, 312, 0, 0, NemesisRa, 23,"chasing", true ) setElementModel ( NemesisRa, 134 ) exports.extra_health:setElementExtraHealth ( NemesisRa, 5000 ) exports.BiOWindow: show ( getRootElement (), "info", "#FF0000[EVENTO]> #00ff00El Boss De San Fierro Ha Aparecido\n#00ff00Si lo Matas De Recompenza Se Te Dara #00ff00$15.000", 8000,"#FF0000|ZA|~> Zombie Attack ~ Boss SF",false ) local hillArea = createColRectangle (NemesisRa, 90, 150 ) attachElements ( hillArea, NemesisRa, 0, 0, 2 ) local x, y, z = getElementPosition(NemesisRa) blipRa = (createBlipAttachedTo ( NemesisRa, 23 )) setElementData ( NemesisRa, "nemesis1", true ) setTimer(Boss, 3000000, 1) setTimer(destroyElement, 3000000, 1, NemesisRa) setTimer(destroyElement, 3000000, 1, blipRa) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), Boss ) function hill_Enter ( thePlayer, matchingDimension ) -- announce to everyone that the player entered the hill if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " entered the zone!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) triggerClientEvent (thePlayer, "nsound", thePlayer ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter )