IsPlayerEnemy - Faction

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Faction Script

Checks to see if the player is an enemy of this faction or not.

This is the same flag that gets set on a faction when the player commits a crime against it, which allows a faction to attack the player even if the player is an ally of that faction.

The flag is automatically cleared (whether set by script or code) after 24 hours.

Syntax[edit | edit source]

bool Function IsPlayerEnemy() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

Whether the player is an enemy of this faction.

Examples[edit | edit source]

; Is the player an enemy of the empire?
bool expelled = EmpireFaction.IsPlayerEnemy()

See Also[edit | edit source]