Code: Select all
actor Purifier : CustomInventory 12349
{
Inventory.PickupMessage "You got the purification device."
Inventory.PickupSound "items/armorpickup"
Inventory.Amount 1
Inventory.MaxAmount 1
+SOLID
States
{
Spawn:
BART A -1
Stop
Pickup:
TNT1 A 0 ACS_NamedExecute("SlowMeDown", 0)
Stop
}
}
Code: Select all
script 2 (void)
{
if (CheckInventory("Purifier") == 1)
Exit_Normal(0);
else
Print(s:"You don't have the purification device.");
}
If I change the item definition from CustomInventory to just Inventory, the "SlowMeDown" script doesn't work, but the linedef script DOES find the item and ends the level.
What do I do?