Long War 2 Console Commands

Start with the fundamentals.

Moderator: deaconivory

Forum rules
Players can post in Long War 201 threads but not start new ones.
LordYanaek
Posts: 940
Joined: Mon Jan 23, 2017 1:34 pm

Re: Long War 2 Console Commands

Post by LordYanaek »

glad you found a way to solve it. Yes [ubool] was certainly a placeholder for an actual boolean (true/false) argument.
Clibanarius
Posts: 205
Joined: Sun Feb 05, 2017 1:33 am

Re: Long War 2 Console Commands

Post by Clibanarius »

SetAlertLevel.
LordYanaek
Posts: 940
Joined: Mon Jan 23, 2017 1:34 pm

Re: Long War 2 Console Commands

Post by LordYanaek »

DLC Missions
"ADVENT Avenger" posted those on Steam in the description of a mod that forces those same missions to spawn. Since it's fairly common in LW1.2 that those missions never spawn, having those listed here seems like a good idea.
  • Hunter's Weapon PoI (Not recommended, this PoI will duplicate and is fairly common)

    Code: Select all

    SpawnPOI true 1 POI_HunterWeapons
  • The Nest (mission unlocking Alien Rulers)

    Code: Select all

    SpawnPOI true 1 POI_AlienNest
  • Lost Towers (mission to unlock the Spark)

    Code: Select all

    SpawnPOI true 1 POI_LostTowers
mazz0
Posts: 2
Joined: Thu Mar 30, 2017 9:15 pm

Re: Long War 2 Console Commands

Post by mazz0 »

Is there a command to add a Resistance Mec to a region? I captured two on the codex coordinates mission but they didn't show up. I'm sure we would have carried them out along with the alien portal thingy, so I'd like to add them :)
mazz0
Posts: 2
Joined: Thu Mar 30, 2017 9:15 pm

Re: Long War 2 Console Commands

Post by mazz0 »

mazz0 wrote:Is there a command to add a Resistance Mec to a region? I captured two on the codex coordinates mission but they didn't show up. I'm sure we would have carried them out along with the alien portal thingy, so I'd like to add them :)
Found it!

Code: Select all

LWAddResistanceMec [region]
boy_cad
Posts: 18
Joined: Mon Oct 17, 2016 7:04 am

Re: Long War 2 Console Commands

Post by boy_cad »

Hello.
Im looking for a command which will clear a soldier stuck in officer training, freeing the OTS slot and returning her to 'Available' status. As far as I can see, she's not going anywhere, and I cant cancel her training normally.
Im not sure if its a bug or a mod-meddling glitch, but I posted here http://www.pavonisinteractive.com/phpBB ... 17&t=24195
boy_cad
Posts: 18
Joined: Mon Oct 17, 2016 7:04 am

Re: Long War 2 Console Commands

Post by boy_cad »

Re: above stuck soldier:
I just demolished the facility> then consoled GiveFacility > GiveResource Supplies> Upgrade the GTS> add soldier for training> Cancel training; and thus successfully removed the soldier and returned her to "Available" status. Adding the ability she was training for would be nice, though.
HappyNinja
Posts: 1
Joined: Mon Apr 17, 2017 3:29 am

Re: Long War 2 Console Commands

Post by HappyNinja »

gassrex wrote:GiveResource codex brain?
any command for codex brain?
additem corpsecyberus [INT]
TwistedOne73
Posts: 1
Joined: Sat Aug 25, 2018 6:53 pm

Re: Long War 2 Console Commands

Post by TwistedOne73 »

gassrex wrote:GiveResource codex brain?
any command for codex brain?
The console command name for the codex brain is: "Cyberus" so in the console command window (once I have one in my inventory):

GiveResource CorpseCyberus 100
sinthemau
Posts: 1
Joined: Tue Nov 12, 2019 10:57 pm

Re: Long War 2 Console Commands

Post by sinthemau »

Hi,
I cannot find the Console Commands for the LW2 specific PCS, I need PSI Offense that I had only one but already used.
Can anyone share it if you know?
Thanks a lot
boy_cad
Posts: 18
Joined: Mon Oct 17, 2016 7:04 am

Re: Long War 2 Console Commands

Post by boy_cad »

sinthemau wrote: Tue Nov 12, 2019 11:01 pm Hi,
I cannot find the Console Commands for the LW2 specific PCS, I need PSI Offense that I had only one but already used. Can anyone share it if you know? Thanks a lot
Ive seen them around somewhere. Im looking for the 'Combat Rush" PCS code myself, and I'll tpost back if I find it.

I also have a question about which console commands are best to use to end an unwanted mission. I'd like to to do it without gaining any experience. 'endbattle xcomwins true' crashes the game.

(Theres been a plauge of red UFO's buzzing around me, and the second defense in a month just popped.)

edit:for PCS identification, maybe take a look at this reddit> https://redd.it/6ab55v
Post Reply