12p Posted October 10, 2010 Posted October 10, 2010 How can I make my players get spawned on a EDF spawnpoint? I have no idea about doing that, I never used it.
Castillo Posted October 11, 2010 Posted October 11, 2010 well you can check the game modes that uses EDF and check how is done maybe.
Wojak Posted October 12, 2010 Posted October 12, 2010 ok lets asume that you made a valid edf file and you added the costum spawnpoints using the editor lets say you edf spawnpoint name is "myspawnpoint" and the editor names the spawnpoints in map file as "myspawnpoint (1)", "myspawnpoint (2)" ect. to get a position of specyfic spawnpoint: local x,y,z = getElementPosition(getElementById("myspawnpoint (1)")) spawnPlayer (someplayer,x,y,z) to get a radnom spawnpoint: local spawntable = getElementsByType("myspawnpoint") local randomspawn = math.random ( 1, table.getn ( spawntable ) ) local x,y,z = getElementPosition( spawntable[randomspawn]) spawnPlayer (someplayer,x,y,z)
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