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

mastaZz

Members
  • Content Count

    33
  • Joined

  • Last visited

Everything posted by mastaZz

  1. mastaZz

    fast slot magazines

    please tell me how to create one void addMags(PlayerBase player, string mag_type, int count) { if (count < 1) return; EntityAI mag; for (int i = 0; i < count; i++) { mag = player.GetInventory().CreateInInventory(mag_type); } player.SetQuickBarEntityShortcut(mag, 1, true); } EntityAI baikerClass(PlayerBase player) { EntityAI gun = player.GetInventory().CreateInInventory("AKM"); gun.GetInventory().CreateAttachment("AK_FoldingBttstck"); gun.GetInventory().CreateAttachment("AK_RailHndgrd"); gun.GetInventory().CreateAttachment("AK_Suppressor"); gun.GetInventory().CreateAttachment("KobraOptic"); EntityAI aspants = player.GetInventory().CreateInInventory("CargoPants_Black"); EntityAI asjacket = player.GetInventory().CreateInInventory("RidersJacket_Black"); EntityAI asboots = player.GetInventory().CreateInInventory("CombatBoots_Black"); EntityAI helmet = player.GetInventory().CreateInInventory("MotoHelmet_Black"); EntityAI asbag = player.GetInventory().CreateInInventory("CourierBag"); addMags(player, "Mag_AKM_30Rnd", 3); return gun; } what would all 3 magazines be in fast slots, instead of one?
  2. mastaZz

    fast slot magazines

    Thanks, I'll keep it in mind
  3. mastaZz

    fast slot magazines

    friend i love you it works))) thank you so much
  4. mastaZz

    fast slot magazines

    This is what I got in the end and it does not work as I want ((( void addMags(PlayerBase player, string mag_type, int count) { if (count < 3) return; EntityAI mag; for (int i = 0; i < count; i++) { mag = player.GetInventory().CreateInInventory(mag_type); player.SetQuickBarEntityShortcut(mag, i, true); } player.SetQuickBarEntityShortcut (mag, 1, true); } EntityAI baikerClass(PlayerBase player) { EntityAI gun = player.GetInventory().CreateInInventory("AKM"); gun.GetInventory().CreateAttachment("AK_FoldingBttstck"); gun.GetInventory().CreateAttachment("AK_RailHndgrd"); gun.GetInventory().CreateAttachment("AK_Suppressor"); gun.GetInventory().CreateAttachment("KobraOptic"); EntityAI aspants = player.GetInventory().CreateInInventory("CargoPants_Black"); EntityAI asjacket = player.GetInventory().CreateInInventory("RidersJacket_Black"); EntityAI asboots = player.GetInventory().CreateInInventory("CombatBoots_Black"); EntityAI helmet = player.GetInventory().CreateInInventory("MotoHelmet_Black"); EntityAI asbag = player.GetInventory().CreateInInventory("CourierBag"); addMags(player, "Mag_AKM_30Rnd", 3); return gun; }
  5. mastaZz

    fast slot magazines

    I fixed the error I assume it works for you, because you are using 1 fast slot on magazine. But how to create 3 fast slots with 3 magazine? sorry for my English
  6. mastaZz

    fast slot magazines

    added like you player.SetQuickBarEntityShortcut(primary, 0, true); player.SetQuickBarEntityShortcut(mag, 1, true); player.SetQuickBarEntityShortcut(rags, 2, true); player.SetQuickBarEntityShortcut(axe, 3, true); on line player.SetQuickBarEntityShortcut(mag, 1, true); there was an error O_O
  7. mastaZz

    fast slot magazines

    Thanks for the reply, but in this case only one magazine. in slot 4
  8. mastaZz

    fast slot magazines

    Thanks for the reply, but in this case only one magazine. in slot 4
×