2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_PlayerhousingEnableBuilmodeOE extends ObjectReference
|
|
|
|
|
|
|
|
_00E_PlayerhousingMaster Property master auto
|
|
|
|
|
|
|
|
GlobalVariable Property _00E_NQ24_PlayerHouseOwned Auto
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
2024-02-12 18:23:12 +00:00
|
|
|
if akActionRef == Game.GetForm(0x14)
|
|
|
|
if SKSE.GetVersion()
|
|
|
|
master.enableBuildmode()
|
|
|
|
endif
|
2021-10-05 22:15:58 +00:00
|
|
|
if _00E_NQ24_PlayerHouseOwned.GetValueInt() == 0
|
|
|
|
_00E_NQ24_PlayerHouseOwned.SetValueInt(1)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
2024-02-09 18:12:55 +00:00
|
|
|
if akActionRef == Game.GetForm(0x14)
|
2021-10-05 22:15:58 +00:00
|
|
|
master.disableBuildmode()
|
|
|
|
endif
|
|
|
|
EndEvent
|