Mod:Creation Kit/SetPlayerEnemy - Faction

Member of: Mod:Creation Kit/Faction Script

Sets or clears the enemy flag from this faction for the player.

Syntax
Function SetPlayerEnemy(bool abIsEnemy = true) native

Parameters

 * abIsEnemy: True if the player should be flagged temporarily as an enemy of the faction, false to clear the enemy flag.
 * Default: True

Return Value
None.

Examples
BadGuys.SetPlayerEnemy BadGuys.SetPlayerEnemy(false)
 * Set the faction's enemy flag
 * clear the faction's enemy flag