How do I make a custom gun game?

So the } at the bottom in the one that closes it all, and that has to be put in when all the guns are put in?

So would this be correct?

` “gun_game__levels:object”{
levelKills:i=5

weaponSlot:t=“secondary”

“weapons:list”{
item:t=“m9_bazooka_gun”
}

“gun_game__levels:object”{
levelKills:i=5

weaponSlot:t=“secondary”

“weapons:list”{
item:t=“rmn_50_gun”
}
}
`

the ` didn’t work

Ye. This entity should be closed by four} (my bad that i tell to add one, need to add two).
One of them close weapon:list<t>, another one “gun_game__levels:object”, another “gun_game__levels:array” and final closes entity.

Use three in start and in the end. Like here:

` ` `
Three ` in message start and three in end.
This good if you want to sent code.

And yeah... Don't forgot to remove space between `.
` ` `

But without any space between `.

1 Like

The gun game doesn’t work, but the blk file displays the levels. What should I change to make it work?

`

entity{
_template:t=“gun_game_mode_logic”
gun_game__levelsCount:i=20

“gun_game__levels:array”{
“gun_game__levels:object”{
weaponSlot:t=“melee”
levelKills:i=1
selectedSessionWeapon:t=“knife_weapon”

  "weapons:array"{
    weapons:t="mannlicher_m1895_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="secondary"
  levelKills:i=4
  selectedSessionWeapon:t="winchester_model_1912_gun"
  selectedSessionAmmo:t="winchester_model_1912_magazine"

  "weapons:array"{
    weapons:t="winchester_model_1912_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=2
  selectedSessionWeapon:t="barret_m82a1_gun"
  selectedSessionAmmo:t="barret_m82a1_magazine"

  "weapons:array"{
    weapons:t="m1_garand_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="m4_gun"
  selectedSessionAmmo:t="m4_magazine"

  "weapons:array"{
    weapons:t="mp34o_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="fn_scar_gun"
  selectedSessionAmmo:t="fn_scar_magazine"

  "weapons:array"{
    weapons:t="breda_mod_30_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="hk_ump_45_gun"
  selectedSessionAmmo:t="hk_ump_45_magazine"

  "weapons:array"{
    weapons:t="sniper_gewehr_43_gun"
  }

  "additionalWeapInfo:array"{
    "additionalWeapInfo:object"{
      "gunMods:object"{
        scope:t="scope_zf4"
      }
    }
  }

  "selectedAdditionalInfo:object"{
    "gunMods:object"{
      scope:t="scope_zf4"
    }
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=6
  selectedSessionWeapon:t="m1921ac_thompson_gun"
  selectedSessionAmmo:t="m1921_thompson_drum"

  "weapons:array"{
    weapons:t="m3_greasegun_supressed_oss_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="steyr_aug_a1_gun"
  selectedSessionAmmo:t="steyr_aug_a1_magazine"

  "weapons:array"{
    weapons:t="m2_carbine_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="ak_103_gun"
  selectedSessionAmmo:t="ak_103_magazine"

  "weapons:array"{
    weapons:t="m1_thompson_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="browning_m1919a6_gun"
  selectedSessionAmmo:t="browning_m1919a6_magazine"

  "weapons:array"{
    weapons:t="browning_m1919a6_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="m9_bazooka_gun"
  selectedSessionAmmo:t="m6a3_bazooka_item"

  "weapons:array"{
    weapons:t="m9_bazooka_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="akm_47_gun"
  selectedSessionAmmo:t="akm_47_magazine"

  "weapons:array"{
    weapons:t="m1903a1_springfield_gun"
  }

  "additionalWeapInfo:array"{
    "additionalWeapInfo:object"{
      "gunMods:object"{
        scope:t="unertl_8x_sight"
      }
    }
  }

  "selectedAdditionalInfo:object"{
    "gunMods:object"{
      scope:t="unertl_8x_sight"
    }
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="m1_flamethrower_gun"
  selectedSessionAmmo:t="flamethrower_fuel_tank_light"

  "weapons:array"{
    weapons:t="m1_flamethrower_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="secondary"
  levelKills:i=3
  selectedSessionWeapon:t="p08_luger_artillery_gun"
  selectedSessionAmmo:t="mp_18_magazine"

  "weapons:array"{
    weapons:t="p08_luger_artillery_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="mg_42_handheld_gun"
  selectedSessionAmmo:t="mg_42_handheld_magazine"

  "weapons:array"{
    weapons:t="delisle_commando_carbine_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="lewis_lmg_gun"
  selectedSessionAmmo:t="lewis_lmg_magazine"

  "weapons:array"{
    weapons:t="m1911a1_colt_nickel_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="secondary"
  levelKills:i=5
  selectedSessionWeapon:t="sturmpistole_gun"
  selectedSessionAmmo:t="panzerwurfkorper_42_item"

  "weapons:array"{
    weapons:t="sturmpistole_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="mine"
  levelKills:i=5
  selectedSessionWeapon:t="ni_05_lunge_mine"

  "weapons:array"{
    weapons:t="german_officer_sword_weapon"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="primary"
  levelKills:i=5
  selectedSessionWeapon:t="bren_mk2_gun"
  selectedSessionAmmo:t="bren_mk2_magazine"

  "weapons:array"{
    weapons:t="colt_new_service_m1909_gun"
  }
}

"gun_game__levels:object"{
  weaponSlot:t="melee"
  levelKills:i=1
  selectedSessionWeapon:t="usa_axe"

  "weapons:array"{
    weapons:t="knife_weapon"
  }
}

}
}

`

I think would be better if I’ll sent screenshots about what I do for mark/recolor code.

image

And it will be:

Your code here.

image
And it will be:
Your code here.

Can you please screenshot find entity?
You need to write gun_game_mode_logic in filter.

okay
1 Like

Is this what you mean by find entity

Screenshot 2023-07-29 170811
Screenshot 2023-07-29 170832

1 Like

I take all that back it kinda works

1 Like

Wait it does work!

1 Like

Devenddar thank you for all the help yo have given me. I shall play test the gun game now and release it soon!

1 Like

I have released it now it is called “SKY BUNKERS GUN GAME!”

1 Like

I am stealing it now! Lmao. I know nothing about gun game bro. I told you about zombies mode in great detail so I would like to take this post as a material to learn. Thank you for asking all the questions, btw, as they are more than extremely useful