SetPlayerEnemy - Faction
Revision as of 09:58, 21 March 2011 by imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' Faction Script Sets or clears the enemy flag from this faction for the player. == Syntax == <source lang="papyr…')
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)