Jump to content

Photo

Adding timer to removal script


  • Please log in to reply
No replies to this topic

#1
FiftyTifty

FiftyTifty

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,111 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, 21 September 2012 - 06:47 PM.





Page loaded in: 1.013 seconds