BorderLine Posted March 7, 2012 Share 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 Link to comment
Castillo Posted March 7, 2012 Share 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? Link to comment
BorderLine Posted March 7, 2012 Author Share Posted March 7, 2012 with the timer im trying to create boss every 10 minutes well now i fix it, but extrahealth dont work Link to comment
Castillo Posted March 7, 2012 Share Posted March 7, 2012 Extra health doesn't work with slothbots too, maybe it doesn't work with zombies either. Link to comment
BorderLine Posted March 7, 2012 Author Share Posted March 7, 2012 deam thx for your time Link to comment
Castillo Posted March 7, 2012 Share Posted March 7, 2012 Try it with a normal ped, not a zombie and see if it works. Link to comment
Agon Posted March 7, 2012 Share 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) Link to comment
Castillo Posted March 7, 2012 Share Posted March 7, 2012 Yeah, but maybe he put that function inside zombies, in that case he doesn't need to. Link to comment
Agon Posted March 7, 2012 Share 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.. Link to comment
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