Talk:IsInCombat

From GECK
Jump to: navigation, search

Does this command will return 1 also if the actor is attacked by someone, but is not attacking himself (i.e. remains passive)? - ZuTheSkunk 16:36, 17 November 2010 (UTC)

Yes, it does. Any time enemies are actively searching for the player, the game engine sees the player as in combat. Thus this will return 1 regardless of whether the player is actively attacking back. I have gotten around this in my Hardcore Needs mods by checking for player.isweaponout or player.ismoving, after checking for player.isincombat. BlackCompany