sxp2high / Survive-Altis

Other
0 stars 0 forks source link

actionsInventory for consumables #43

Closed sxp2high closed 10 years ago

sxp2high commented 10 years ago

All edible items need the following array set in config: actionsInventory[] = {"Eat"};

All drinkable items need the following array set in config: actionsInventory[] = {"Drink"};

Legislator commented 10 years ago

Settings have been applied to the config, however sometimes only to the item's base classes. Please let me know if this is not working (needs testing)

sxp2high commented 10 years ago

It's working, but this also includes the 0% empty items. Would be difficult to exclude these via scripting. I'm afraid base classes won't work well with this. It could become even more problematic with future actions (like "pour out bottle" etc.).

So it should be added to each item separately to give us control over each item's actions.

Legislator commented 10 years ago

Changes have been applied, no base class is using the array anymore.