Infection Free Zone

Infection Free Zone

69 ratings
Console Commands - Manual
By Earl Grey
Console Commands - Manual
5
4
   
Award
Favorite
Favorited
Unfavorite
Mod Usage Warning!
Some players are using modder tools like WeMod or other similar software. Those tools are known to cause game crashes! We recommend that you use 'console commands' rather than those tools. Of course, it is still possible for the console commands to cause issues with the game, especially when used excessively, but they are much safer in that regard.
Basic Console Commands
There is a total of 7 basic console commands that are available by default. To use them, you only have to open the console command window (available under the "~" hotkey) and type them directly while using correct parameters.

All the other console commands require the usage of the "EnableCheats" command first, which will unlock the access to all the other commands. More details about them can be found in the Advanced Console Commands section.

List of Basic Console Commands:
  • AddResourcesToHq
  • AddWorkersToHq
  • SpawnVehicle
  • SetHour
  • UnlockContent
  • SpawnGroupAtCursor
  • AdaptBuilding

Parameters

Most of the console commands require the usage of the parameters. That means that after the console command, you have to specify further what exact change you want to see happen. For example, writing "AddResourcesToHq" on its own won't result in any changes in the game. But writing "AddResourcesToHq res_ammo 50" will spawn 50 units of ammo.

In this case, "res_ammo" is the first required parameter, and "50" is the second. The player basically has to specify which resource they want to spawn and in what quantity. Don't worry, hints are available when using the console commands.

Using TAB and UP arrow

A quick hint! To make navigation with the console commands easier, you can use the TAB keyboard button and UP arrow keyboard button.
  • The TAB button will autocomplete your current command. Launch the console command with the "~" hotkey, type "E," and press the TAB button to see that the whole text "EnableCheats" will now be suggested in the window.
  • The UP arrow button will bring back the last console command that you have used. It might be especially useful when adding a lot of different resources. To continue the usage of the example mentioned in the "Parameters" section: you can write "AddResourcesToHq res_ammo 50", use the UP arrow to bring back the whole command again, and only replace the name of the resource ("AddResourcesToHq res_wood 50") to make the whole process faster.
AddResourcesToHq
Let's tackle the basic console commands one by one. AddResourcesToHq will spawn the desired resources directly to your Zone's shared storage. As mentioned above, you can select which resources you want to spawn and in what quantity. Be careful not to fill up your warehouse if you don't want to block your production cycles. Adding resources above the warehouse limit isn't possible. The command won't execute in such a case.

Usage Example:
  • "AddResourcesToHq eq_shotgun 5" will result in 5 shotguns spawning in the Zone's shared storage space. You can pick them up from any HQ or Warehouse in your Zone.
  • "AddResourcesToHq res_ammo 100" will spawn 100 crates of ammo in the Zone's shared storage space.
  • "AddResourcesToHq res_cans 100" will spawn 100 crates of food in the Zone's shared storage space.

You can spawn the following resources when using the AddResourcesToHq console command:
  • res_cans, res_fuel, res_ammo, res_bricks, res_metal, res_wood, res_fertiliser, res_drugs, res_meat, res_basic_tool, res_scientificmaterial, eq_pistol, eq_sniper_rifle, eq_assault_rifle, eq_shotgun, eq_wear_protectors, eq_wear_riot_gear, eq_wear_plate, res_grain, res_food_rations, res_scientists_case, eq_polearm, res_scientists_vaccine, res_scientists_sample
AddWorkersToHq
This console command is very simple. It will add new Workers to your Zone. If needed, they can be trained later on as squad members. The player only has to provide one numerical parameter.

Usage Example:
  • "AddWorkersToHq 20" will result in 20 new workers available in your Zone.
Important! Workers can impact the game's performance in a significant way. Spawning 20 workers here and there won't cause any issues. But spawning 2000 of them might result in less FPS, and in the worst case scenario - in the game crashing.
SpawnVehicle
SpawnVehicle allows you to spawn any vehicle at the desired location on the map. After using the command, you have to use the LMB (left mouse button) to choose where the vehicle is supposed to spawn. Important! Subsequent clicks will spawn more vehicles. Use the RMB (right mouse button) to stop spawning the vehicles.

Usage Example:
  • "SpawnVehicle ve_truck" will start spawning trucks in the locations that you choose with LMB.

You can spawn the following vehicles when using the SpawnVehicle console command:
  • ve_bus, ve_cistern, ve_pickup, ve_sedan, ve_truck, ve_minicar, ve_combi, ve_sport_car, ve_van, ve_suv, ve_armoured_transport
SetHour
The SetHour console command allows you to change the time of the day. You can quickly end the night, which might help against sudden attacks of the infected. Or proceed with some actions that you would like to happen sooner. SetHour is based on the 24-hour time format.

Usage Example:
  • "SerHour 0" will set the hour to 12:00 AM, midnight.
  • "Set Hour 13" will set the hour to 1:00 PM.
  • "Set Hour 100" will set the hour to 12:00 AM the next day. It's not possible to skip more than one day with this console command.

Important! You can slightly "turn back time" with this command, but only within the same day. For example, it's possible to go from DAY 4, 11:00 PM to DAY 4, 12:00 AM. But it's not possible to go from DAY 4, 12:00 AM to DAY 3, 11:00 PM.
UnlockContent
The UnlockContent command can be used to unlock several game aspects that are otherwise locked behind reaching certain points of game progression or selecting a specific starting map.

Usage Example:
  • "UnlockContent bld_greenhouse" will allow you to immediately build the Greenhouse structures, without researching the corresponding technology first.
  • "UnlockContent GroupSpawn_inf_bear" will allow the infected bears to spawn on your map, even if they wouldn't do so normally do so due to the selected biome.

The following content can be unlock with the usage of the UnlockContent console commands:
  • CreateSquad, DeconstructBuilding, TakeOverVehicle, bld_arms_factory, prod_ammo, prod_pistol, prod_assault_riffle, prod_shotgun, prod_sniper_rifle, bld_fortified_wall, bld_metal_fence, bld_hq, bld_hospital, prod_medbay_drugs, prod_vaccine, prod_medbay_nothing, bld_house, bld_warehouse, bld_wooden_tower, bld_fortified_tower, bld_shelter, bld_farm, prod_farm_grain, prod_farm_fertiliser_to_grain, bld_fuel_factory, prod_wood_to_fertiliser, prod_fertiliser_to_fuel, prod_wood_to_fuel, prod_fuel_to_fertiliser, prod_grain_to_fuel, bld_wooden_palisade, bld_metal_tower, bld_barbed_wire, bld_brick_wall, bld_antenna, bld_kitchen, prod_kitchen_grain_and_wood_to_food, prod_kitchen_meat_and_wood_to_food, bld_barn, prod_barn_grain_to_meat_and_fertiliser, bld_butchery, bld_cans_factory, prod_food_and_metal_to_cans, bld_greenhouse, prod_greenhouse_grain, prod_greenhouse_fertiliser_to_grain, bld_medbay, prod_medbay_drugs, prod_medbay_nothing, bld_medieval_tower, bld_medieval_wall, bld_research_center, bld_sawmill, bld_temple, bld_tool_factory, prod_wood_and_metal_to_tools, prod_polearm, bld_carworkshop, bld_wooden_gate, bld_metal_gate, bld_fortified_gate, bld_medieval_wall, bld_weather_center, bld_gear_factory, prod_wear_protectors, prod_wear_riot_gear, prod_wear_plate, bld_kindergarten, prod_kindergarten_care, bld_bar, prod_bar_spot, bld_squad_quarters, bld_repairmen, bld_carworkshop, bld_farm_big, prod_farm_big_grain, prod_farm_big_fertiliser_to_grain, bld_forester, bld_scrapyard, outtrans_allback, outtrans_backup, outtrans_welcome, GroupSpawn_bandit_big, GroupSpawn_bandit_big_assault_rifle, GroupSpawn_bandit_big_machette, GroupSpawn_bandit_medium, GroupSpawn_bandit_medium_assault_rifle, GroupSpawn_bandit_medium_machette, GroupSpawn_bandit_small, GroupSpawn_bandit_small_machette, GroupSpawn_bandit_sniper, GroupSpawn_immigrants_medium, GroupSpawn_inf_dog_big, GroupSpawn_inf_dog_medium, GroupSpawn_inf_dog_small, GroupSpawn_inf_human_big, GroupSpawn_inf_human_medium, GroupSpawn_inf_human_small, GroupSpawn_inf_human_tiny, GroupSpawn_immigrants_big_assault_rifle, GroupSpawn_immigrants_big_machette, GroupSpawn_immigrants_big_pistol, GroupSpawn_immigrants_medium_assault_rifle, GroupSpawn_immigrants_medium_pistol, GroupSpawn_immigrants_small_pistol, GroupSpawn_animal_deer_small, GroupSpawn_animal_deer_medium, GroupSpawn_animal_deer_big, GroupSpawn_animal_boar_small, GroupSpawn_animal_boar_medium, GroupSpawn_animal_boar_big, GroupSpawn_inf_bull, GroupSpawn_inf_moose, GroupSpawn_inf_bear, children_born, CustomBuildingConstruction, SwarmsAlwaysWithAlpha, AlphaDropOnDeath, AnimalDropOnDeath, AnimalDropOnDeath, pos_skills, pos_tech, pos_res, pos_guns, pos_strong, neg_weird, neg_ill, neg_shot, neg_wound, neg_hungry
SpawnGroupAtCursor
The SpawnGroupAtCursor command is similar to the SpawnVehicle command. You have to choose the type of group you want to spawn, the quantity, and then use the LMB to select the spawn location.

Usage Example:
  • "SpawnGroupAtCursor animal_deer 5" will spawn 5 deers in the selected location.
  • "SpawnGroupAtCursor bandits 15 eq_shotgun" will spawn 15 bandits, each armed with a shotgun weapon.
  • "SpawnGroupAtCursor immigrants 20 eq_polearm 1000" will spawn 20 immigrants, each armed with a polearm, with an additional view range of 1000 units.

Important! The last two parameters, which define the weapon and view range, are optional.

You can spawn the following groups with the SpawnGroupAtCursor console command:
  • inf_human, inf_dog, inf_alpha, bandits, army, immigrants, animal_deer, animal_boar, inf_bear, inf_moose, inf_bull
AdaptBuilding
The AdaptBuilding console command allows you to adapt any building on the map to your desired role in an instant. It also overrides the limitations imposed by the unlocked content. So, even if you haven't unlocked the Cannery building through the corresponding research, the "AdaptBuilding bld_cans_factory" will work on its own. This command also requires the usage of the LMB to select the building that has to be adapted to the chosen role.

Usage Example:
  • "AdaptBuilding bld_warehouse" will allow you to adapt any chosen building on the map as a warehouse.

You can adapt the following buildings with the AdaptBuilding console command:
  • bld_arms_factory, bld_hq, bld_hospital, bld_house, bld_warehouse, bld_shelter, bld_fuel_factory, bld_kitchen, bld_barn, bld_butchery, bld_cans_factory, bld_medbay, bld_research_center, bld_sawmill, bld_tool_factory, bld_weather_center, bld_gear_factory, bld_kindergarten, bld_bar, bld_squad_quarters, bld_repairmen, bld_forester, bld_scrapyard
Advanced Console Commands - Enable Cheats
Advanced console commands have been created first and foremost to make the development and testing of the game easier. While those commands are still available to the community, we have to be honest when informing you that their usage can cause unwanted issues with your gameplay.

To enable Advanced Console Commands, you have to click on the "~" hotkey on your keyboard first and then proceed with typing "EnableCheats" to unlock all the remaining commands. We won't provide a detailed explanation and usage examples as with the Basic console commands, but below is the full list of all available commands.

AddResearchProgressPoints
AddWeatherForecastPoints
AddResourcesToBuilding
AddScientificMaterials
AddResourceSupplyList
AddResourcesToHq
AddMoodModifier
AddWorkersToHq
AddEventToPool
AdaptBuilding
ClearFractionResourcesContainer
CheckAchievementsProgress
CheckAchievementProgress
CompleteActiveMissions
ChangeMainUILayerState
CreateResourceCursor
ClearAllPlayerPrefs
ChangeLanguage
CreateFarmland
ClearNavData
CreateTower
CreateWall
CreateGate
DoNotReplaceMissingTranslationToEng
DiscardResourcesFromBuilding
DiscardResourcesFromHq
DestroyResourceCursor
EndMission
FillFractionResourcesContainer
HideFps - hides the FPS counter in the bottom left corner of the screen
ImportTransmissionTabFromDoc
KillAllWorkersExcept
KillAllGroups
KillWorker
MakeBabies
RemoveResourcesFromHq
ResetVendorCooldown
RemoveMoodModifier
ResetAchievement
ReportBug - opens the Bug Reporter. Useful when it's not possible to reach Bug Reporter via Esc Menu
StartTransmissionWithGroupCharacteristics
SetSpawnPointVisualizationState
SetFpsDisplayerRefreshTime
SetCitizenChanceToGoSick01
SpawnHordeAt9404_12519_15
SpawnVehicleGroupAtCursor
SpawnGroupsAtExpedition
ScavengeAllExpeditions
SpawnBigSquadAtCursor
SpawnImmigrantsAccept
SetVolumetricFogState
ScavengeAllBuildings
SpawnGroupInBuilding
SetCanAbandonVehicle
SetResearchAvailable
SetBugDetectorState
SpawnSquadAtCursor
SpawnSquadAtLatLon
SpawnGroupAtCursor
ShowDebugZoomInfo
StartTransmission
SetVendorCooldown
SetResearchState
SetLoggingLevel
StartWeatherFog
SpawnImmigrants
SwitchFogOfWar
SetVendorState
SetResolution
ShowAllGroups
SetTimeSpeed
SpawnSquadAt
SetSoldierHp
SpawnVehicle
ShowVehicles
StartMission
SetFpsLimit
StartAction
StartEvent
SwarmDebug
SaveGame
SetNpcHp
ShowFps - displays the FPS counter in the bottom left corner of the screen
SetHour
SetDay
UnlockAllExpeditionTiles
UnlockResearchType
UnlockContent

7 Comments
Mackcrws 25 May @ 8:14am 
Let us make Squads, Building and Worker invulnurable and we don't need any 3rd party programs.
Tyler 10 May @ 4:47am 
I would also like to understand how to make units and buildings invulnerable. And you can completely abandon third-party applications.
Tatsumi Oga 23 Apr @ 1:56am 
ty for console coz its hard use CE for good start on d3adly Aracis
Sakamoto 19 Apr @ 7:41am 
nice
Gangly 16 Apr @ 7:55pm 
Nice feature needs some tuning though with accepting the commands properly (sometimes it works sometimes you have to put a smaller value depending on the command)
boecri 15 Apr @ 10:04am 
Abe smiles from heaven upon the devs
Cigarette 14 Apr @ 10:14pm 
"MakeBabies"
Hands down best command