Josh Posted May 6, 2012 Share Posted May 6, 2012 Hello, I got a question. I have created a spawn point like: <Zombie_spawn id="Zombie_spawn (1)" dimension="2" interior="0" posX="2243.9108886719" posY="90.34447479248" posZ="26.3359375" rotX="0" rotY="0" rotZ="300.18414306641" /> but where should I place it, in the meta.xml or in a map file? Link to comment
Jaysds1 Posted May 6, 2012 Share Posted May 6, 2012 What resource are you using for this? Link to comment
Josh Posted May 6, 2012 Author Share Posted May 6, 2012 https://community.multitheftauto.com/index.php?p= ... ils&id=347 Link to comment
Jaysds1 Posted May 6, 2012 Share Posted May 6, 2012 Here: https://wiki.multitheftauto.com/wiki/Slo ... _Functions Link to comment
Josh Posted May 6, 2012 Author Share Posted May 6, 2012 Here: https://wiki.multitheftauto.com/wiki/Slo ... _Functions .. createZombie will create one zombie, I want several zombies to be spawned at one of the spawn points, it should work. Link to comment
Jaysds1 Posted May 6, 2012 Share Posted May 6, 2012 Ya it can work, but do you want all the zombies spawned there out of the whole world? Link to comment
Josh Posted May 6, 2012 Author Share Posted May 6, 2012 Yes but I will add more spawn points, once I got the 1st one working. Link to comment
iFoReX Posted May 6, 2012 Share Posted May 6, 2012 and if u use event in .lua 'onZombieSpawn' ? I dont know if it will work but try Link to comment
Jaysds1 Posted May 6, 2012 Share Posted May 6, 2012 try this: addEventHandler("onZombieSpawn",root,function() posX= 2243.9108886719 posY=90.34447479248 posZ=26.3359375 setElementPosition(source,posX,posY,posZ) setElementRotation(source,0,0,300.18414306641) end) Link to comment
Josh Posted May 6, 2012 Author Share Posted May 6, 2012 I tried using without any dimension and it worked, but as in my first post I need them to be in the second one. I tried dimension = "2" with no result. <Zombie_spawn id="Zombie_spawn (3)" posX="1869.6999511719" posY="-2426.1000976563" posZ="13.60000038147" rotX="0" rotY="0" rotZ="0"></Zombie_spawn> Link to comment
Jaysds1 Posted May 6, 2012 Share Posted May 6, 2012 Well, he did made this in 2009, I'll send him over here Link to comment
Smart. Posted May 6, 2012 Share Posted May 6, 2012 Search after: zomb = createPed in the server sided file. then add this under it and then create spawns as they were in the default dimension ( like you did above ) setElementDimension ( zomb, 2 ) 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