1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
880 B

Scriptname _00E_FS_Theriantrophist_AllowTempTSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
_00E_FS_Theriantrophist_AllowTemporaryTransform.SetValueInt(1)
if bCrampyDungeon
fOriginalScale = PlayerREF.GetScale()
PlayerREF.SetScale(0.92)
endif
endif
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF
_00E_FS_Theriantrophist_AllowTemporaryTransform.SetValueInt(0)
if bCrampyDungeon
if fOriginalScale > 0
PlayerREF.SetScale(fOriginalScale)
else
PlayerREF.SetScale(1.0)
endif
endif
endif
EndEvent
float fOriginalScale = 1.0
bool Property bCrampyDungeon = False Auto
; This makes the werewolf a bit smaller
Actor Property PlayerREF Auto
GlobalVariable Property _00E_FS_Theriantrophist_AllowTemporaryTransform Auto