Make a powerup respawn after 30 seconds when it was picked?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Make a powerup respawn after 30 seconds when it was picked?

Post by Tormentor667 »

The title pretty much explains what I would like to do. How can this be done through DECORATE?
Worst
Posts: 115
Joined: Sat Apr 28, 2007 5:29 am
Location: finland
Contact:

Re: Make a powerup respawn after 30 seconds when it was pick

Post by Worst »

Using latest development build features, I think you could do it like:

Code: Select all

ACTOR MySoulsphere : Soulsphere replaces Soulsphere
{
  +INVENTORY.ALWAYSRESPAWN
  Inventory.RespawnTics 1050 //30 seconds
}
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Make a powerup respawn after 30 seconds when it was pick

Post by Tormentor667 »

Thanks, I will try just that
Locked

Return to “Editing (Archive)”