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

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: @property@armor.savepercent' is an unknown actor property???

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

by Graf Zahl » Sun Oct 22, 2017 2: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.

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

by XLightningStormL » Sun Oct 22, 2017 2:14 am

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
  }
}

Top