monkeybrain Posted October 11, 2014 Report Share Posted October 11, 2014 If I was say, doing a event and wanted new spawned in players to get teleported to a certain spot,how would I go about doing that? Only for newspawns not players that have relogged/aborted Would I have to modify a spawn selector? Is there a easier way to do it, I only want them to spawn at one spot. Thankyou! Link to comment Share on other sites More sharing options...
0 jahangir13 Posted October 11, 2014 Report Share Posted October 11, 2014 Hm, the place is here to check if it's a new character or not: dayz_server pbo / compiles/server_playerSetup.sqf There is a check : if (count _worldspace > 0) then { ... else { /////_randomSpot = true; _worldspace = [229,[8246.3184,15485.867,15.544708]]; <-- you would need to place the worldspace coordinates here where a new player should spawn. Uncomment ramdonSpot = true; }; Existing characters go into the if clause...new ones into the else part. The 229 is the height. I've tested it once now and I spawned at the top of the building at this coordinates. So seems that you don't stuck in the ground or fall deep. How you get the coordinates in there fitting to your current event I don't know. That's something you need to figure out. monkeybrain 1 Link to comment Share on other sites More sharing options...
0 monkeybrain Posted October 14, 2014 Author Report Share Posted October 14, 2014 Ok that seemed to work thanks! The 229 is the height. What do you mean by this. Isn't 15.544708 the height? Link to comment Share on other sites More sharing options...
0 Csus Posted October 14, 2014 Report Share Posted October 14, 2014 229 is the direction they will be facing. You are right, the 15.xxxxx is the height. Link to comment Share on other sites More sharing options...
0 emwilsh Posted October 14, 2014 Report Share Posted October 14, 2014 _worldspace = [229,[8246.3184,15485.867,15.544708]]; Direction X,Y axis Height Link to comment Share on other sites More sharing options...
0 jahangir13 Posted October 14, 2014 Report Share Posted October 14, 2014 Csus: thanks. You are right, the height is already in the coordinates array (me idiot) ;) But 1 a.m. these things start to happen. Link to comment Share on other sites More sharing options...
Question
monkeybrain
If I was say, doing a event and wanted new spawned in players to get teleported to a certain spot,how would I go about doing that?
Only for newspawns not players that have relogged/aborted
Would I have to modify a spawn selector? Is there a easier way to do it, I only want them to spawn at one spot.
Thankyou!
Link to comment
Share on other sites
5 answers to this question
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