Page 1 of 1
Custom Inventory Disappears After a While (SOLVED)
Posted: Fri Mar 28, 2014 4:41 am
by Fabysk
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.
RE: Custom Inventory Disappears After a While
Posted: Fri Mar 28, 2014 7:05 am
by Vincent(PDP)
Use ACS...
Code: Select all
Script 999 OPEN
{
Delay(35*30);
Thing_Remove(<itemtaghere>);
}
RE: Custom Inventory Disappears After a While
Posted: Fri Mar 28, 2014 10:56 am
by Klofkac
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]
RE: Custom Inventory Disappears After a While
Posted: Fri Mar 28, 2014 9:23 pm
by Fabysk
Thanks Klofkac it works!