SetPlayerEnemy - Faction
Jump to navigation
Jump to search
Member of: Faction Script
Sets or clears the enemy flag from this faction for the player.
Syntax[edit | edit source]
Function SetPlayerEnemy(bool abIsEnemy = true) native
Parameters[edit | edit source]
- abIsEnemy: True if the player should be an enemy of the faction, false if the player shouldn't be.
- Default: True
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; 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)