Home   Help Search Login Register  

Author Topic: How to respawn/stop from dying  (Read 502 times)

0 Members and 1 Guest are viewing this topic.

N00b13

  • Guest
How to respawn/stop from dying
« on: 15 Aug 2003, 17:48:49 »
I know someone has probably answered these somewhere but I have been searching and searching for months and the only respawn I found was garbled and didn't seem to do anything anyway;

A) how can you make someone respawn? normally I just use the MP wizard to make a Team flag fight then change the briefing, remove the flag and enemy respawn etc, but how the f**k am I supposed to do this with other user made maps

B) can someone respawn where they have just died

C) is there a way I can use respawns in single player

D) (the alternative and also my favourite) can I use an event handler or similer to stop units from dying/being realised that they are hit in the first place

I hate losing anyone, and although its not the same in a game as in real life, you can really connect wiht the AI at times
I still remember people I have seen killed in combat, guys who were my best friends......*cries*
also it really pisses me off about how I can't use all the wonderful maps that people have made for MP games because I can't make respawns.

thanks in advance for any help you can give
and I hope you don't just flame me

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to respawn/stop from dying
« Reply #1 on: 15 Aug 2003, 18:21:44 »
Basic respawn options for MP are controlled in the description.ext.     There are tutes on this handy file in the Ed Depot.   It handles a lot of stuff so you need to extract what you need from the tutes.    I recommend you un-pbo some MP missions that you like and see how it's done in there.

You can't use respawn in SP.   However, you can fake it to some extent and you can use eventhandlers to keep people alive.    The eventhandler (hit or killed) starts a script which does setdammage 0 on the loon in question.

And don't worry, you can't get flamed here  ;D everybody is too nice.
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:How to respawn/stop from dying
« Reply #2 on: 15 Aug 2003, 19:40:55 »
I'm making a kind of 'fake respawn to base, but still group respawn' kind of mp mission ( ;D) and here's how I'm going about with it:

I add this line to init fields of all the members in player's group. a9 is name of the unit.
this addeventhandler ["hit",{[a9] exec "fakerespawn.sqs"}]

fakerespawn.sqs looks like this.
_unit = _this select 0
?_unit == player: exit
?getdammage _unit < 0.8: exit
_unit setdammage 0; _unit setpos getmarkerpos "start"; exit


This works to some extend. If I drop an lgb to the units lap he won't die, but "respawns" to a place where 'start' marker is. He's also healed to full strength. However if I shoot the unit to his head he won't always (practically never) "respawn" but dies.

This can be used to player too. Just remove the line '?_unit == player: exit'. After that you're invinsible.  :P
Not all is lost.

N00b13

  • Guest
Re:How to respawn/stop from dying
« Reply #3 on: 15 Aug 2003, 21:28:14 »
so to keep the guys in my squad alive I could do this:

this addeventhandler ["hit",{[a9] exec "kevlarbulletproof.sqs"}] (in init field)

in script:

_unit = _this select 0
_unit setdammage 0; _unit setpos getmarkerpos "start"; exit

in order to keep them alive?
will this work in SP (on AI)
will this work in MP for everyone?
what if they get hit and the damage is 1 or greater (?) will that stop the script from functioning

I really appriciate the help

N00b13

  • Guest
Re:How to respawn/stop from dying
« Reply #4 on: 15 Aug 2003, 21:55:56 »
OK I just tested this with some east um. volunteers with their weapons removed and it works fine!
but.....
it doesn't work with RL-players in SP or MP,  in SP it acts like you've died and in MP you spawn as the seagull, is there any way I can stop the whole seagull thing in MP?

PS it doesn't matter how much damage you take, it still doesn't glitch and keep you dead

I will de-PBO some missions when I get the chance