PlayerPayCrimeGold - Faction

From Creation Kit
Jump to: navigation, search

Member of: Faction Script

Has the player pay the crime gold on this faction, possibly removing any stolen items in their inventory and sending them to jail.

Syntax

Function PlayerPayCrimeGold(bool abRemoveStolenItems = True, bool abGoToJail = True) native

Parameters

  • abRemoveStolenItems: Whether to remove stolen items from the player's inventory or not.
    • Default: True
  • abGoToJail: Whether to send the player to the exterior jail marker or not. (The player is not actually put in jail, but moved to the spot where you'd be if you served time and were released from jail).
    • Default: True

Return Value

None.

Examples

; Have the play pay the crime gold to the police, remove stolen items and sending them to jail
PoliceFactionProperty.PlayerPayCrimeGold()


; Have the play pay the crime gold to the police, NOT remove stolen items, but sending them to jail
PoliceFactionProperty.PlayerPayCrimeGold(abGoToJail = true)

See Also