Jump to content
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×