Home   Help Search Login Register  

Author Topic: to limit respawns if "respawn=GROUP" in description.ext  (Read 827 times)

0 Members and 1 Guest are viewing this topic.

scorpi0x

  • Guest
hi guys,

i had actually posted this question earlier in the multiplayer section
trying my luck for some answers here.

the main aim limit all the players' respawns to 3 times (replacing AI), making them stay dead/respawn as bird the 4th time they die.

i have only managed to make things work the way i want it for 1 player instead of all.
----------
method
----------
1.entering the following line into init of the soldier thru mission editor.
Code: [Select]
this addEventHandler ["killed", {_this exec "respawn.sqs"}]

2. description.ext
Code: [Select]
respawn=4
respawndelay=1

3. init.sqs
Code: [Select]
deathcounter1 = 0
publicVariable "deathcounter1"

4. attached file. respawn.sqs
tried repeating step 1 for other players but doesn't work out.


have anyone done this before?
limiting the respawns for all players
can someone somehow help/guide me make this method global to all players in the mission, pls?

All help will be much appreciated. Thank You.

scorpi0x

  • Guest

Offline ryankaplan

  • Members
  • *
  • yeah...
Re:to limit respawns if "respawn=GROUP" in description.ext
« Reply #2 on: 06 Mar 2005, 14:41:56 »
have you tried using different variables for each unit?

how do you change the respawn in mid game by the way?


edit : what do you mean by replacing ai? if you have 3 ai team mates then you will respawn as them until everyone of them is dead and then you will become a bird....
« Last Edit: 06 Mar 2005, 14:44:54 by ryankaplan »