Custom Weapons in Vehicle Spawns

  • Offline Freak
  • Fresh Spawn
  • *
  • Posts: 7

Custom Weapons in Vehicle Spawns

« posted: Dec 27, 2014, 02:54 AM »
Does anyone know where I need to add my Custom weapons to get them to spawn in vehicles, I have them in the loot tables but I cant find where to edit to get them in vehicles.
  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1077
  • ^_^;;

Re: Custom Weapons in Vehicle Spawns

« Reply #1 posted: Dec 27, 2014, 10:10 AM »
Does anyone know where I need to add my Custom weapons to get them to spawn in vehicles, I have them in the loot tables but I cant find where to edit to get them in vehicles.

You need to edit your server\functions\serverVars.sqf - you can see here I've included a few custom weapons from the NATO SF Spetsnatz weapon mod into my cars ...


Code: [Select]
//Random Weapon List - Change this to what you want to spawn in cars.
vehicleWeapons =
[
"SMG_01_F",
"SMG_02_F",
"hgun_PDW2000_F",
"hgun_mas_sa61_F",
"arifle_mas_bizon",
"hgun_mas_uzi_F",
"arifle_mas_m1014",
"arifle_mas_mp5",
"hgun_mas_glocksf_F_sd",
"hgun_mas_grach_F_sd",
"hgun_mas_mp7_F_a",
"arifle_mas_lee"
];


Hope that helps ;) Remember that the last entry of an array doesn't have a "," at the end.

- from the grassy knoll -
  • Offline Freak
  • Fresh Spawn
  • *
  • Posts: 7

Re: Custom Weapons in Vehicle Spawns

« Reply #2 posted: Dec 27, 2014, 09:17 PM »
Thank you, big help, really appreciate it

Re: Custom Weapons in Vehicle Spawns

« Reply #3 posted: Jun 09, 2016, 01:17 PM »
hi

i try to add mod @NATO_rus_weapon  to add new weapons only in cars

i never install a mod so i need help. :)


i put the mod in my /a3server/@NATO_rus_weapon
i put the key in  /a3server/keys
i put the @mod in the start config server
i put the classname of a weapon to make a test in servervars:

//Random Weapon List - Change this to what you want to spawn in cars.
vehicleWeapons =
[
//   "hgun_P07_F",
//   "hgun_Rook40_F",
//   "hgun_ACPC2_F",
//   "arifle_SDAR_F",
//   "SMG_01_F",   // Vermin .45 ACP
//   "SMG_02_F",   // Sting 9mm
//   "hgun_PDW2000_F",
//   "arifle_TRG20_F",
//   "arifle_TRG21_F",
//   "arifle_TRG21_GL_F",
//   "arifle_Mk20C_F",
//   "arifle_Mk20_F",
//   "arifle_Mk20_GL_F",
//   "arifle_Katiba_F",
//   "arifle_Katiba_C_F",
//   "arifle_Katiba_GL_F",
//   "arifle_MXC_F",
//   "arifle_MX_F",
//   "arifle_MX_GL_F",
//   "arifle_MX_SW_F",
//   "arifle_MXM_F",
//   "srifle_EBR_F",
//   "LMG_Mk200_F",
//   "LMG_Zafir_F",
   "arifle_mas_m4_sd"



i put weapon class name and magazine in :
A3server\mpmissions\A3Wasteland_v1.2b.Altis\addons\Lootspawner\lootspawner.sqf


so what i miss?  where is the loot table ? and what for the magazines ?

thank for the help

Re: Custom Weapons in Vehicle Spawns

« Reply #4 posted: Jun 09, 2016, 03:50 PM »
have you closed the array correctly?

vehicleWeapons =
[
   "arifle_mas_m4_sd"
];

  • Offline CREAMPIE
  • Armaholic
  • Veteran
  • ******
  • Posts: 1077
  • ^_^;;

Re: Custom Weapons in Vehicle Spawns

« Reply #5 posted: Jun 09, 2016, 04:46 PM »
have you closed the array correctly?

vehicleWeapons =
[
   "arifle_mas_m4_sd"
];

also make sure to start your server with the mod ( and have the mod files on your server )

- from the grassy knoll -

Re: Custom Weapons in Vehicle Spawns

« Reply #6 posted: Jun 09, 2016, 06:46 PM »
Yes i close the ]
Thank you

And where is the loot table ?