Jump to content
Sign in to follow this  
Absolution_15th

Delaying a Player Spawn in MP?

Recommended Posts

Problem: During an initial load in of a large cooperative mission players who spawn on the LHD sometimes spawn in the water. The reason is that the player spawned in before the LHD. 50-60 people all loading in at once causes spikes in data serving.

Common work around: Spawn the player a few feet above the deck to give the server that extra eye blink to get the LHD into the world. Doesn't always work.

What I am looking for is a more reliable way of ensuring the players on the LHD will have solid decking underneath them during mission start. Having them log on to the server after mission start is not preferred since server stability is a common issue. Not to mention the associated mission delay.

Is there a way for me to tell the server to spawn the LHD (or world as a whole) first, wait a few seconds, then spawn the players?

Share this post


Link to post
Share on other sites

Trigger with condition: true and On act: player setPosASL [getPos player select 0,getPos player select 1,15.9]

If the LHD still doesn't spawn in time, introduce a countdown time of a couple of seconds.

Edited by Celery

Share this post


Link to post
Share on other sites

Do I sync each player with the trigger or is it only going to fire off for people standing inside of the trigger area?

Not every player will start on the LHD and I wouldn't want to drop the others out of the sky.

Thank you for the tip. This has been a consistent problem for us since day one... we got skills but mission scripting isn't among them. I am glad to see its a simple fix.

Share this post


Link to post
Share on other sites

No, syncing or the trigger area has nothing to do with it. It makes the player on each client teleport to a certain height ~0.5 seconds after the mission starts. 15.9 meters is the height above sea level of the Utes carrier's deck.

Share this post


Link to post
Share on other sites
No, syncing or the trigger area has nothing to do with it. It makes the player on each client teleport to a certain height ~0.5 seconds after the mission starts. 15.9 meters is the height above sea level of the Utes carrier's deck.

Okay, so how do I choose which players will get teleported and which ones will not? Not everyone is going to start on the LHD all the time.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×