Jump to content
sproyd

Add a custom item (a Snickers bar) to inventory

Recommended Posts

Is there anyway to hardcode into a mission a custom item - in this case a Snickers bar?

So I basically want a Snickers Bar Item to spawn into a car's inventory at a trigger. I'd like to have this as part of a mission file rather than a mod. I don't need to have a 3D model, just the name and preferably I could make an image icon in inventory.

Share this post


Link to post
Share on other sites
Is there anyway to hardcode into a mission a custom item - in this case a Snickers bar?

So I basically want a Snickers Bar Item to spawn into a car's inventory at a trigger. I'd like to have this as part of a mission file rather than a mod. I don't need to have a 3D model, just the name and preferably I could make an image icon in inventory.

Negative, doing so requires a new class, a class can only be created via config.cpp not any form of sqf, the only sort of thing you can do to add new content from inside a mission without an add-on is change textures using hidden selections

Share this post


Link to post
Share on other sites

Can you post some example of "change textures using hidden selections" for reference ?

Share this post


Link to post
Share on other sites

i remember some time thinking of trying this myself.

 

this thread is useful for it.

 

https://forums.bistudio.com/topic/151006-interaction-with-inventory-items/

 

you get the IDs for the listbox in the inventory dialog that you want to add your item to. and you can then use the listbox commands to add an entry there i think.

https://community.bistudio.com/wiki/lbAdd

https://community.bistudio.com/wiki/lbSetPicture

 

this could be tricky to make it behave 100% unglitchy but definately worth a try at least imho.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×