[User error] @property@armor.savepercent' is an unknown actor property???

Bugs that have been investigated and resolved somehow.

Moderator: Developers

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

Postby XLightningStormL » Sun Oct 22, 2017 3:14 am

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

Code Here:
Code: Select allExpand view
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
User avatar
DUSK Wiki Master
Joined: 09 May 2016
Discord: XLightningStormL#7461
Twitch ID: XLightmingStormL

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

Postby Graf Zahl » Sun Oct 22, 2017 3:26 am

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.
User avatar
Graf Zahl
Lead GZDoom Developer
Joined: 19 Jul 2003
Location: Germany

Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest