Jump to content

need help with a despawning script


jube25

Recommended Posts

Hi, I recently installed HeX_0ff's Throw Any Weapon, and I am not a modder at all I only know very basic stuff in the construction set, I created custom daggers for throwing, and I need a script to make them despawn after a fairly short amount of time being on the ground. maybe a few hours. Is this possible?
Link to comment
Share on other sites

Try using this:

 

scn examplescript

float timer

Begin GameMode

if (timer > 10)
	if (GetDisabled == 0)
		Disable
	endif
	Return
endif

if (GetContainer)
	if (timer > 0)
		set timer to 0
	endif
else
	set timer to timer + GetSecondsPassed
endif

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

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