Home   Help Search Login Register  

Author Topic: Respawning and Body Deletion  (Read 1266 times)

0 Members and 1 Guest are viewing this topic.

Quicksilver

  • Guest
Respawning and Body Deletion
« on: 17 Apr 2005, 20:25:30 »
Alright well on this mission i'm making, i would like to bodies to be deleted however i want respawning of those same bodies/people to occur.

Right now i'm using this script:

http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&catselected=-1_-1&catagory=-1&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&searchwhat=1&searchlevel=0&searchwhat=1&searchopts=&searchstring=remove&x=0&y=0

So um yeah, what do i need to do get remove bodies and keep respawning the same people.

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Respawning and Body Deletion
« Reply #1 on: 17 Apr 2005, 22:31:46 »
Assuming this is an MP mission, very easy.
Also assuming you know how to make units respawn in MP, All you have to do is make a normal respawning description.ext, then just make a trigger, so
condition = !Alive Mr_Dude
Activation = Deletevehicle Mr_Dude
Then just set the number of times to redo to repeat and your good to go!

Also to make it look cooler you may want to make a loop to have the units sink into the ground before making them dissapear, or make another condition which checks if anyone is near the body, thus eliminating the annoying hassle of running to the body to grab his gun and watching him dissapear before you can get it.
I like your approach, lets see your departure.
Download the New Flashlight Script!

Quicksilver

  • Guest
Re:Respawning and Body Deletion
« Reply #2 on: 18 Apr 2005, 02:45:52 »
Hmm i'm not sure how to do all that (althought i would like to make bodies sink). I'd rather use a script than make 12 triggers too.  ;D
« Last Edit: 18 Apr 2005, 02:50:14 by Quicksilver »

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:Respawning and Body Deletion
« Reply #3 on: 18 Apr 2005, 19:14:22 »
Well, simple enough just do:
Code: [Select]
_unit = _this select 0

_x = (getpos _unit select 0)
_y = (getpos _unit select 1)
_z = 0
#sink
?(_z <= -1.5):deletevehicle _unit;exit
_unit setpos [_x,_y,_z]
_z = _z - 0.01
~0.01
goto"sink"

And just put that in the trigger with the !Alive Homie condition and then for the activation just put [Homie] exec "HeDied.sqs".

Really pretty simple once you know how.
I like your approach, lets see your departure.
Download the New Flashlight Script!