Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

SindreA94

Help with Init.c and inventory management

Recommended Posts

I am currently creating a starter medkit with supplies but can't fit all items in container...


Here's the code:

itemEnt = medKit.GetInventory().CreateInInventory( "BandageDressing" );
    if ( Class.CastTo( itemBs, itemEnt ) )
    itemBs.SetQuantity( 4 );

medKit.GetInventory().CreateInInventory("DisinfectantAlcohol");
medKit.GetInventory().CreateInInventory("TetracyclineAntibiotics");
medKit.GetInventory().CreateInInventory("SurgicalGloves_LightBlue");
medKit.GetInventory().CreateInInventory("PainkillerTablets");
 

The last item "PainkillerTablets" won't fit since the remaning slots are side by side...

Is there a way to rotate items in the init.c file?

Share this post


Link to post
Share on other sites

×