How can I show enemy health using console?

How can I show enemy health using console? - Concentrated child showing usage of gamepad to father while playing on game console and resting on sofa together with family

In PC Gamer's Prospekt review console is used to compare enemy base health values between Half-Life 2 and a HL 2 mod:

from Prospekt's first combat encounter, it felt to me like something was off. The breaking point came during a battle at the start of chapter five, when, in a fit of frustration, I quit out, loaded up Half-Life 2, and used the command console to check out a hunch. Sure enough, the Combine Overwatch Soldier and Elite—the two enemy types you fight throughout the majority of Prospekt—have been given significantly more health.

I would like to do my own tests, for example MINERVA mod may have increased the enemy health.



Best Answer

Make sure that the developer console is enabled in the game settings (keyboard > advanced). Enable developer mode and cheats with developer 1 and sv_cheats 1 commands. Aim at an NPC and open console (the game should be automatically paused) and use command impulse 103. Example output for Antlion Soldier:

State: Combat, npc_antlion: Activity: ACT_RUN  -  Ideal Activity: ACT_RUN
Task 129 (#4), Schedule SCHED_CHASE_ENEMY, 
Enemy is player Moving Leader.
Yaw speed:32.0,Health:  30
Groundent:worldspawn

god (God mode) and host_timescale x (slow down time; the default is host_timescale 1, for example host_timescale 0.25) can be used as supplementary commands.
Please note that the command tells the current health and damage is taken into account, to get base health be sure to aim at an intact character.

x=<1



Pictures about "How can I show enemy health using console?"

How can I show enemy health using console? - Crop unrecognizable audio engineer working on console and using laptop
How can I show enemy health using console? - Crop anonymous male sound director adjusting faders on modern mixer board during live concert
How can I show enemy health using console? - Books On The Table



How do I check my enemy health in Skyrim?

Each player in the world of Rust has their own status area at the bottom right part of the screen. From the top down, this area shows the condition of the player, the health bar, the food bar, and the rads bar.

How do I set NPC health in Skyrim?

Open the console, click on the desired target, and type in: "setAV health x", x being the number, obviously, and without the quotes.



Show AI Health Above Head | Floating Widget | Improved - Unreal Engine 4 Tutorial




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ketut Subiyanto, Dayvison de Oliveira Silva, Dayvison de Oliveira Silva, Ylanite Koppens