Random Vehicle Spawns

Random Vehicle Spawns

« posted: Jan 21, 2019, 08:34 AM »
  Easy questions for you (I think).

  I want only civilian style cars to spawn in Towns. I also want to lessen the number of random base parts (and perhaps add some others)

  How do I remove Hunters and other military style vehicles from random spawns?

  Also, how can I alter/restrict/change the Number of base objects that spawn in towns?
  • Offline Sp4wN7
  • Geared Up
  • **
  • Posts: 21
  • mercgeist.com

Re: Random Vehicle Spawns

« Reply #1 posted: Feb 25, 2019, 06:47 AM »
Hi Mr. Black,

Question 1: How do I change vehicle spawn types for random spawns in the city?
Answer: The file that needs to be edited is "modConfig/vehicleSpawnClasses.sqf" in your mission file.

Question 1: How do I alter/restrict/change the Number of base objects that spawn in towns?
Question 2: The file that needs to be edited is "server/default_config.sqf in your mission file. Go down to the "Server Spawn Settings" section and edit as needed.

Re: Random Vehicle Spawns

« Reply #2 posted: Feb 25, 2019, 10:27 AM »
default_config (or master_config if you're using it) only allows for an on or off setting for base object spawning.

If you want to change the objects that can spawn, you'll need to modify server/functions/serverVars.sqf
If you want to adjust probabilities of an object spawning you'll have to modify server/functions/objectSpawning.sqf