@property@armor.savepercent' is an unknown actor property???

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
XLightningStormL
Posts: 384
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

@property@armor.savepercent' is an unknown actor property???

Post by XLightningStormL »

Issues like this have only been occurring in the latest GZDooM builds, so I blame ZScript

Code Here:

Code: Select all

ACTOR ArmorBonus2 : Inventory replaces ArmorBonus
{
  Radius 20
  Height 16
  Inventory.PickupMessage "$GOTARMBONUS" // "Picked up an armor bonus."
  Inventory.PickupSound "pickup/bonus"
  Inventory.Icon "ARM1A0"
  Armor.SavePercent 33.335
  Armor.SaveAmount 2
  Armor.MaxSaveAmount 200
  Inventory.MaxAmount 0
  +COUNTITEM
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.AUTOACTIVATE
  States
  {
  Spawn:
    BON2 ABCDCB 6
    Loop
  }
}
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: @property@armor.savepercent' is an unknown actor propert

Post by Graf Zahl »

You have to inherit from the proper base class. As the name implies, it requires some kind of armor - in this case the proper base class is 'BasicArmorBonus'.
'Inventory' does not know these properties.
Post Reply

Return to “Closed Bugs [GZDoom]”