Jump to content

how to make upgrades decay ?


Recommended Posts

You could try something simple using a DoPeriodicTask like this

inst:DoPeriodicTask(10, function() 
	--STUFF GOES HERE--
	--maybe something kind of like level = level - 1
end)

this is where something would run every 10 seconds. Just replace 10 with however many seconds you want it to wait before repeating.

think it would go under common postinit, but I'm not positive. Just because I think it would have to run on the server too so it would keep track of how many levels it drops. You can mess around with to try

Link to comment
Share on other sites

On 9/19/2017 at 3:55 AM, pickleplayer said:

You could try something simple using a DoPeriodicTask like this


inst:DoPeriodicTask(10, function() 
	--STUFF GOES HERE--
	--maybe something kind of like level = level - 1
end)

this is where something would run every 10 seconds. Just replace 10 with however many seconds you want it to wait before repeating.

think it would go under common postinit, but I'm not positive. Just because I think it would have to run on the server too so it would keep track of how many levels it drops. You can mess around with to try

Thanks , what do i have to put in '

--STUFF GOES HERE--

hm.... imma try to put something like nightmare fuel something something

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...