Talk:IsInCombat

From the Fallout3 GECK Wiki
Revision as of 13:44, 16 December 2010 by imported>Blackcompany
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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