Page MenuHomeFeedback Tracker

Respawn delay annoyed when Game starting (also when Join In Progress?)
New, NormalPublic

Description

When we start a game with a Respawn Delay, all players have to wait before start the game uselessly.
I supposed sentence is the same for Join In Progress players.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 8 x64
Operating System Version
1.98.146373
Category
Scripting
Steps To Reproduce

In Multiplayer / Attributes (sorry if approximate names, my game is in French), Respawn part :
Place a playable unit
RespawnTemplates -> check only: MenuPosition
RespawnDelay = 00:10:00 (if you are not patient, put 00:00:10 ;) )

Additional Information

To avoid this waiting time, I put in [initPlayerLocal.sqf]:

/*
	**** Made by Tequiller ****
*/

[] spawn {
	//Intantaneous Respawn at Join In Progress
	waitUntil{lbSize (findDisplay 12 displayCtrl 88808) != 0};//in multiplayer this code is not always functional to avoid player to push [Repawn] button.
	setPlayerRespawnTime -1;
	
	//If we wish to interact with player unit at starting game, we need to wait several times, just like this example :
	waitUntil{playerRespawnTime==-1};
	waitUntil{player == player};
	player setDir (switch side player do{
		case west: {0};
		case east: {180};
		case independent: {90};
		default {270};
	});
};

Event Timeline

Tequiller created this task.May 8 2020, 6:15 PM
Tequiller edited Additional Information. (Show Details)Jul 15 2020, 4:35 PM
Pi added a subscriber: Pi.Jun 7 2021, 10:49 AM

This can be avoided using the description.ext -> respawnonstart https://community.bistudio.com/wiki/Description.ext#respawnOnStart afaik