OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: Speeder on 09 Jul 2010, 10:39:42

Title: Variable Respawntime
Post by: Speeder on 09 Jul 2010, 10:39:42
Is it possible to let the players (when in the multoplayer lobby) decide the respawn time, and if yes, how?

I've tried this:
Code: [Select]
///////////////////////////////////////////////////////////////////////////////////////////
respawn = "BASE";
respawndelay = Param1;
disabledAI = 0;
///////////////////////////////////////////////////////////////////////////////////////////

titleParam1 = "Respawn time";
valuesParam1[] = {1, 3, 6, 10};
defValueParam1 = 1;
textsParam1[] = {"1 min", "3 min", "6 min", "10 min"};

///////////////////////////////////////////////////////////////////////////////////////////


But I just spawn right away.
Title: Re: Variable Respawntime
Post by: Loyalguard on 09 Jul 2010, 14:08:17
I believe respawn time is defined in seconds, not minutes. So try 60, 180, 360, 600 for values instead (texts can stay in mins). Good luck!
Title: Re: Variable Respawntime
Post by: Speeder on 09 Jul 2010, 14:26:01
Just a typo - The values are for testing purpose.


But even with default value at 1 sekund, I spawn 0.1 sec later. and 0.1 sec with 10 selected.

Somehow It dows not accept my value
Title: Re: Variable Respawntime
Post by: kju on 10 Jul 2010, 08:47:05
Not possible that way.

You can script it by respawning people, create a dialog that they cannot close.
And move them back into play whenever you decide to.
Title: Re: Variable Respawntime
Post by: Speeder on 10 Jul 2010, 09:46:31
Roger.