BorderLine Posted March 7, 2012 Posted March 7, 2012 Hi forum people. i was mading this, and my boss dont spawn i dont know where is the errors. debugscript dont show errors function crearBoss() local x,y,z = getElementPosition( source ) BOSS = createZombie ( x , y , z, 0, 30, 0, 0 ) exports["extrahealth"]:setElementExtraHealth(BOSS, 9999) end addEventHandler ( "onZombieSpawn", resourceRoot, crearBoss ) setTimer(crearBoss,600000,0) the extrahealth is running, and this is a serverside
Castillo Posted March 7, 2012 Posted March 7, 2012 1: You forgot about 'addEvent'. 2: If I'm right, 'onZombieSpawn' doesn't trigger a ped element as 'source'. 3: What is that timer for?
BorderLine Posted March 7, 2012 Author Posted March 7, 2012 with the timer im trying to create boss every 10 minutes well now i fix it, but extrahealth dont work
Castillo Posted March 7, 2012 Posted March 7, 2012 Extra health doesn't work with slothbots too, maybe it doesn't work with zombies either.
Castillo Posted March 7, 2012 Posted March 7, 2012 Try it with a normal ped, not a zombie and see if it works.
Agon Posted March 7, 2012 Posted March 7, 2012 shouldn't it be like that? I mean createZombie does not work in normal mta. he should export the function.. exports["zombies"]:createZombie(blah blah blah)
Castillo Posted March 7, 2012 Posted March 7, 2012 Yeah, but maybe he put that function inside zombies, in that case he doesn't need to.
Agon Posted March 7, 2012 Posted March 7, 2012 Yeah, but maybe he put that function inside zombies, in that case he doesn't need to. oh that's reasonable..
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