yanvr Posted March 12, 2012 Posted March 12, 2012 At this time i try crate a zombieboss looking another posts. I have a problem with the boss it isn't appear That is the script: function crearBoss (thePlayer) BOSS = createZombie ( 1086.6645507813, 1076.1888427734, 10.838157653809, 90, 13, 0, 0 ) exports.extrahealth:setElementExtraHealth(BOSS,100000) end addEventHandler ( "onResourceStart", resourceRoot, createZombie )
Castillo Posted March 12, 2012 Posted March 12, 2012 function crearBoss () BOSS = exports.zombies:createZombie ( 1086.6645507813, 1076.1888427734, 10.838157653809, 90, 13, 0, 0 ) exports.extrahealth:setElementExtraHealth(BOSS, 100000) end addEventHandler ( "onResourceStart", resourceRoot, crearBoss ) Your error(s): 1: Your function name was "crearBoss", but you we're using "createZombie" in the event handler. 2: You forgot to use 'exports' @ createZombie. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Slothman Posted March 12, 2012 Posted March 12, 2012 you start by hiring the zombie as a temp and letting it work up the corporate ladder. Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
yanvr Posted March 12, 2012 Author Posted March 12, 2012 Thanx for all solid, the zombie spawn but the extrahealth don't has effect. I tired I surrender
Castillo Posted March 12, 2012 Posted March 12, 2012 Yeah, the same happened in another topic where they wanted the same thing. I guess it's a zombies resource bug. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Kenix Posted March 12, 2012 Posted March 12, 2012 Maybe resource extrahealth not running? http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Slothman Posted March 13, 2012 Posted March 13, 2012 It has nothing to do with a zombies resource, since this is slothbot and extrahealth that's running. I tested it, and I'm not seeing any effect from extrahealth. the script reacts with an error if its used incorrectly, but otherwise i'm not seeing any effect. since the resource is made by Benxamix2, and since the script is compiled so i cant see why its not working, I propose you ask him. Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Castillo Posted March 13, 2012 Posted March 13, 2012 That was my first though, I've just tested the "extrahealth" with a normal ped and it didn't work either. My code: ped = createPed(299, 0, 0, 5) exports["extrahealth"]:setElementExtraHealth ( ped, 10000 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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