Jump to content
  • 0

How to use new items?


exploadead

Question

4 answers to this question

Recommended Posts

  • 0

Hey, Guys!

Now, It is easier than ever to make custom (double click) inventory actions for magazines or weapons/items In Epoch using the "CfgItemInteractions" config either in mission config or via even a client side mod.

https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_config/Configs/CfgItemInteractions.hpp

For example, Honey has the added action to Empty out the jar instead of eat it:

interactActions[] = {{"EMPTY","[1,[],'emptyjar_epoch'] call EPOCH_consumeItem;"}};


This shows up as a double click action on the Honey with the text "EMPTY" and will execute the string "[1,[],'emptyjar_epoch'] call EPOCH_consumeItem;" as code via the buttons EH when clicked. Hint: Any code you want can be executed just make sure you use single quotes inside "" or escape any double quotes.

Another example is that you can Empty or Drink a Gas can (to poison yourself) :tongue::
https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_config/Configs/CfgItemInteractions.hpp#L204
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...