This console command enables and disables (toggles) invincibility for all of your soliders.
The syntax for the TakeNoDamage command is as follows:
Search our database of 38 XCOM 2 commands...Show Me!
Find below working examples of the TakeNoDamage command.
If this command is disabled (default), typing the above command into the console will make all of your squad invincible. If you have already enabled this command, typing it into the console will toggle it off.