Here's both of them:
Code: Select all
ACTOR removeingredient : inventory {Inventory.MaxAmount 1}
Code: Select all
ACTOR EmptyVial : inventory 30018
{
scale 0.3
+vulnerable
+NOBLOOD
+cannotpush
Height 1
radius 5
Health 1
Inventory.PickupMessage "$GOTVIAL"
Inventory.amount 1
Inventory.MaxAmount 10
Inventory.Pickupsound "GLVIALPK"
tag"empty vial"
+thruactors
+ROLLSPRITE
+ROLLCENTER
+FORCEXYBILLBOARD
States
(...continues)
A third actor then calls this command:
Code: Select all
A_radiusgive("removeingredient",100, RGF_ITEMS | RGF_OBJECTS | RGF_NOSIGHT , 1, "emptyvial", 0, 0, 2)
Code: Select all
State:
VIAL E 1 a_jumpifinventory("removeingredient",1,"Disappear")
Loop