Background for Skyrim SE
Member of the Faction script
voidfunctionSetPlayerEnemy(boolabIsEnemy=true)Native

Description

Wiki Description

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

Documentation Comment

Sets or clears the player as an enemy of this faction


Caveats


Parameters

boolabIsEnemy=true

CK Wiki Description

True if the player should be an enemy of the faction, false if the player shouldn't be.

  • Default:True

Examples

; Set the player as the enemy of the faction
BadGuys.SetPlayerEnemy()
; No longer have the player be the enemy of the faction
BadGuys.SetPlayerEnemy(false)

Auto-Generated Example

bool myBool__abIsEnemy

myFaction__toCallFunctionOn.SetPlayerEnemy(myBool__abIsEnemy)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.