20 lines
540 B
Plaintext
20 lines
540 B
Plaintext
Scriptname _00E_PlayerhousingEnableBuilmodeOE extends ObjectReference
|
|
|
|
_00E_PlayerhousingMaster Property master auto
|
|
|
|
GlobalVariable Property _00E_NQ24_PlayerHouseOwned Auto
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
if akActionRef == Game.getPlayer()
|
|
master.enableBuildmode()
|
|
if _00E_NQ24_PlayerHouseOwned.GetValueInt() == 0
|
|
_00E_NQ24_PlayerHouseOwned.SetValueInt(1)
|
|
endif
|
|
endif
|
|
EndEvent
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
if akActionRef == Game.getPlayer()
|
|
master.disableBuildmode()
|
|
endif
|
|
EndEvent |