Skip to content
Alexander edited this page Apr 17, 2018 · 7 revisions

In fact, any item can be used like food or drink. Your items may be defined in other *.pbo files. But there are two things needed:

  • Item is defined in classes CfgWeapons or CfgMagazines.
  • The main item class contains subclass KSS.

Good expample can be seen in KSS's cfgWeapons file.

Now mod supports 4 types of KSS based items:

  • Food type

    Field Type Description
    type STRING Should be equal to "food"
    delay NUMBER Defines how long will the usage take in seconds
    add STRING Defines an SQF expression, that returns how many points the item adds to Hunger
  • Drink type

    Field Type Description
    type STRING Should be equal to "drink"
    delay NUMBER Defines how long will the usage take in seconds
    add STRING Defines an SQF expression, that returns how many points the item adds to Thirst
  • Both type

    Field Type Description
    type STRING Should be equal to "both"
    delay NUMBER Defines how long will the usage take in seconds
    add STRING Defines an SQF expression, that returns how many points the item adds both to Hunger and Thirst
  • Both2 type

    Field Type Description
    type STRING Should be equal to "both2"
    delay NUMBER Defines how long will the usage take in seconds
    add STRING Defines an SQF expression, that returns an array [value to add to Hunger, value to add to Thirst]
  • Alcohol type

    Field Type Description
    type STRING Should be equal to "alcohol"
    delay NUMBER Defines how long will the usage take in seconds
    add STRING Defines an SQF expression, that returns how many points the item adds to Alcohol level
    duration STRING Defines an SQF expression, that returns the duration of Alcohol effect
    addWater STRING Defines an SQF expression, that returns how many points the item adds to Thirst

Clone this wiki locally