Custom Inventory Disappears After a While (SOLVED)

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Fabysk
Forum Regular
Posts: 469
Joined: Sat Sep 22, 2012 8:17 pm
Location: In a house...duhh

Custom Inventory Disappears After a While (SOLVED)

#1

Post by Fabysk » Fri Mar 28, 2014 4:41 am

I have implemented the Max Ammo power up in Project 115 (yay) and now I would like to know if there is any way to make it disappear if the player doesn't pick it up after 30 seconds or so.
Last edited by Fabysk on Fri Mar 28, 2014 9:24 pm, edited 1 time in total.
Image Image Image

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: Custom Inventory Disappears After a While

#2

Post by Vincent(PDP) » Fri Mar 28, 2014 7:05 am

Use ACS...

Code: Select all

Script 999 OPEN
{
Delay(35*30);
Thing_Remove(<itemtaghere>);
}
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Custom Inventory Disappears After a While

#3

Post by Klofkac » Fri Mar 28, 2014 10:56 am

Assuming you want to make every instance of max ammo bonus disappear, and you have already a DECORATE defifition on it, you don't have to use ACS... Combining ACS and DECORATE often results in mess.
You can use a state similar to this:

Code: Select all

Spawn:
ITEM A 1050
Goto Death
Pickup:
[your code etc]
Death:
ITEM A 0
Stop
Disclaimer: Not tested, just being theoretic[/size]
Last edited by Klofkac on Fri Mar 28, 2014 11:04 am, edited 1 time in total.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

User avatar
Fabysk
Forum Regular
Posts: 469
Joined: Sat Sep 22, 2012 8:17 pm
Location: In a house...duhh

RE: Custom Inventory Disappears After a While

#4

Post by Fabysk » Fri Mar 28, 2014 9:23 pm

Thanks Klofkac it works!
Image Image Image

Post Reply