Removing Dead Bodies?

Post » Mon Mar 14, 2011 1:31 pm

I was wondering if there might be a way to have dead bodies dissapear after looted of everything, ala morrowind?
User avatar
Tiffany Carter
 
Posts: 3454
Joined: Wed Jul 19, 2006 4:05 am

Post » Tue Mar 15, 2011 2:43 am

Yeah, you could probably script that. But its really not necessary since most dead things are cleared by the game engine after a few days game time.
User avatar
Rob
 
Posts: 3448
Joined: Fri Jul 13, 2007 12:26 am

Post » Mon Mar 14, 2011 8:30 pm

Yeah, you could probably script that. But its really not necessary since most dead things are cleared by the game engine after a few days game time.



The game only removes dead bodies when it respawns a cell. I want it to remove the bodies even if the cell never respawns.
User avatar
Jimmie Allen
 
Posts: 3358
Joined: Sun Oct 14, 2007 6:39 am

Post » Tue Mar 15, 2011 1:34 am

You would have to put a script on every NPC and creature. Unless you want to go the FOSE route, there may be another way.
User avatar
herrade
 
Posts: 3469
Joined: Thu Apr 05, 2007 1:09 pm

Post » Mon Mar 14, 2011 2:19 pm

I wrote a script that makes an actor disappear x seconds after they die. Feel free to use or modify as you wish :)

scn RemoveCorpseSCRIPTfloat timershort ModeBegin onDeath	set timer to 300	 ; number of seconds before corpse disappears	set mode to 1	EndBegin GameMode	if timer >= 0		set timer to timer - GetSecondsPassed		return	endif	if Mode == 0		return	endif	if Mode == 1		ActorREF.disable	; same name as persistent reference ID for the actor disappearing.	endifEnd

User avatar
Kay O'Hara
 
Posts: 3366
Joined: Sun Jan 14, 2007 8:04 pm

Post » Mon Mar 14, 2011 5:30 pm

Winter, I think that script would disable them instantly. You would have to make the first if 'if timer > 0' and then follow it in the next like with an 'elseif mode == 1' so if the timer = 0 it checks the others. That would set the timer to 300, the timer would do nothing at all. And it would disable the body instantly not matter what. >.>
User avatar
Solina971
 
Posts: 3421
Joined: Thu Mar 29, 2007 6:40 am

Post » Tue Mar 15, 2011 12:10 am

Try it. :) I wrote this two days ago and it hasn't failed me yet. You have to place it on something you can kill though, like the actor you want to disappear.

Edit: Just tested it again to make sure I wasn't hallucinating. The enemy disappears 5 minutes after I've killed them.
User avatar
Breanna Van Dijk
 
Posts: 3384
Joined: Mon Mar 12, 2007 2:18 pm

Post » Mon Mar 14, 2011 3:02 pm

I wrote a script that makes an actor disappear x seconds after they die. Feel free to use or modify as you wish :)

scn RemoveCorpseSCRIPTfloat timershort ModeBegin onDeath	set timer to 300	 ; number of seconds before corpse disappears	set mode to 1	EndBegin GameMode	if timer >= 0		set timer to timer - GetSecondsPassed		return	endif	if Mode == 0		return	endif	if Mode == 1		ActorREF.disable	; same name as persistent reference ID for the actor disappearing.	endifEnd




Thank you. Now to edit every NPC and Mob in the game.
User avatar
Stephani Silva
 
Posts: 3372
Joined: Wed Jan 17, 2007 10:11 pm

Post » Tue Mar 15, 2011 5:11 am

Try it. :) I wrote this two days ago and it hasn't failed me yet. You have to place it on something you can kill though, like the actor you want to disappear.

Edit: Just tested it again to make sure I wasn't hallucinating. The enemy disappears 5 minutes after I've killed them.

Oh ok. I guess I am being stupid and missed something. :P The way I see it, the second you set mode to 1, since its in a different if block as the timer, it should be true instantly, thus instantly deleting the body. But I am tired and probably looking at it all wrong. :P (But I hope eventually I will see the error, as scripting is my strong point. T.T)
User avatar
Roberto Gaeta
 
Posts: 3451
Joined: Tue Nov 06, 2007 2:23 am

Post » Mon Mar 14, 2011 2:01 pm

@Kasdar - You want to affect every corpse in the world so it disappears after a set time? Maybe this script isn't such a good idea then, as I thought you'd only want to affect a few enemies in a specific area. I'm sure there is a game setting that determines how long a corpse remains before it disappears? Not sure how else you can change things on such a big scale sorry.

@Gunmaster95 - Oh I break things all the time, hopefully not this time but I have on countless occasions. ;)
User avatar
Sheila Esmailka
 
Posts: 3404
Joined: Wed Aug 22, 2007 2:31 am

Post » Tue Mar 15, 2011 1:14 am

i think u can also create a simpel script that removes all corpses from 1 faction inside the cell think i did that in another mod when stage 1 was clear all bad guys and stage 2 allowed a different faction to enter the cell dont know if it is helpfull for u but might be an idea.
User avatar
Laura Elizabeth
 
Posts: 3454
Joined: Wed Oct 11, 2006 7:34 pm


Return to Fallout 3