Jump to content

Adding timer to removal script


FiftyTifty

Recommended Posts

Edit : Added a timer. The scripting for FO3 is funky.

 

Script if anyone wants it :

 

scn DeadBodiesScript

float fTimer

Begin Gamemode
       if getdead
		if fTimer > 15
			disable
			markfordelete
			set fTimer to fTimer - getSecondsPassed
		else 
			set fTimer to fTimer + getSecondsPassed
       	endif
endif
end

 

Hey there. Got a quickie.

 

Found a mod with a couple of NPCs that are spawned a gajillion times. Would like an automatic body remover that gives me enough time to loot the body after it's been killed.

Here is the current script (It works. No troubleshooting needed) that I have attached to the NPCs.

scn DeadBodiesScript

Begin Gamemode
       if getdead
		disable
		markfordelete
       endif
end

 

Would someone be able to add a timer so that after, say, 15 seconds have passed since the NPC has been dead, the script then runs the "disable markfordelete" part.

 

Thanks in advance.

Edited by FiftyTifty
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...