Home   Help Search Login Register  

Author Topic: Variable Respawntime  (Read 1585 times)

0 Members and 1 Guest are viewing this topic.

Offline Speeder

  • Members
  • *
    • OFP.nu
Variable Respawntime
« 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.
« Last Edit: 09 Jul 2010, 11:33:17 by Speeder »
There are 10 kinds of people in this world. Those who get it, and those who don't.

Offline Loyalguard

  • Former Staff
  • ****
Re: Variable Respawntime
« Reply #1 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!

Offline Speeder

  • Members
  • *
    • OFP.nu
Re: Variable Respawntime
« Reply #2 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
« Last Edit: 09 Jul 2010, 19:38:28 by Speeder »
There are 10 kinds of people in this world. Those who get it, and those who don't.

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: Variable Respawntime
« Reply #3 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.

Offline Speeder

  • Members
  • *
    • OFP.nu
Re: Variable Respawntime
« Reply #4 on: 10 Jul 2010, 09:46:31 »
Roger.
There are 10 kinds of people in this world. Those who get it, and those who don't.