SetPlayerEnemy - Faction

Member of: Faction Script

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

SyntaxEdit

Function SetPlayerEnemy(bool abIsEnemy = true) native

ParametersEdit

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

Return ValueEdit

None.

ExamplesEdit

; 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)

See AlsoEdit