OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: scorpi0x on 03 Mar 2005, 10:10:54
-
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.
this addEventHandler ["killed", {_this exec "respawn.sqs"}]
2. description.ext
respawn=4
respawndelay=1
3. init.sqs
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.
-
http://www.ofpec.com/yabbse/index.php?board=7;action=display;threadid=22206
this was the other thread i opened
-
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....