ModCrimeGold - Faction

Revision as of 16:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Faction Script

Modifies the amount of crime gold on this faction.

SyntaxEdit

Function ModCrimeGold(int aiAmount, bool abViolent = False) native

ParametersEdit

  • aiAmount: The amount to modify the crime gold by.
  • abViolent: If true, modify the crime gold for violent crime, otherwise, for non-violent crime.
    • Default: False

Return ValueEdit

None.

ExamplesEdit

; Increase the amount of non-violent crime gold with the police faction
PoliceFactionProperty.ModCrimeGold(10)


; Decrease the amount of violent crime gold with the police faction
PoliceFactionProperty.ModCrimeGold(-10, true)

See AlsoEdit