Classes:FakeInventory

From ZDoom Wiki

Jump to: navigation, search

Classes: InventoryFakeInventory


FakeInventory items are special items that execute their thing special when being picked up. If the thing special is executed successfully the item will be removed. Items of this class are never placed in the inventory.


Using in DECORATE

FakeInventory defines no new properties and only uses the basic Inventory properties.

FakeInventory is the class being used by old style DECORATE pickups. But it is a normal class that can still be used with all the enhancement of the new format.


Examples:

actor Boost : FakeInventory 10493
{          
  inventory.pickupmessage "Scripted Boost!!!"
  inventory.pickupsound "misc/p_pkup"
  +COUNTITEM
  states
  {
  Spawn:
    AWI3 A -1
    stop
  }
}

DECORATE definition

Actor FakeInventory : Inventory native {}
Personal tools