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.
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.
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.
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.
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 )
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