enderalse/scripts/source/_00e_actorpackagefactionscript.psc
2021-10-06 00:59:59 +02:00

22 lines
587 B
Plaintext

Scriptname _00E_ActorPackageFactionScript extends Actor
Faction Property FactionToAdd Auto
Package Property WatchPackage Auto
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnPackageStart(Package akNewPackage)
If akNewPackage == WatchPackage
SetFactionRank(FactionToAdd, 0)
EndIf
EndEvent
Event OnPackageChange(Package akOldPackage)
If akOldPackage == WatchPackage
RemoveFromFaction(FactionToAdd)
EndIf
EndEvent