enderalse/source/scripts/_00e_actorpackagefactionscript.psc

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