Background for Fallout 4
Member of the Faction script
boolfunctionIsPlayerEnemy()Native

Description

Wiki Description

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.

Documentation Comment

Is the player an enemy of this faction?


Caveats


Examples

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

Auto-Generated Example

bool returnedValue = myFaction__toCallFunctionOn.IsPlayerEnemy()

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.