2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_Playerhousing_LightFurniture extends _00E_Playerhousing_Furniture
|
|
|
|
|
|
|
|
Light Property LIGHT_toCreate auto
|
|
|
|
{not used due to graphic bugs}
|
2021-10-11 18:39:58 +00:00
|
|
|
; ObjectReference createdLight
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
function finishPlacement()
|
|
|
|
{this function is called when the furniture object is at the right position and being placed; use e.g. for light}
|
|
|
|
parent.finishPlacement()
|
|
|
|
;real light cannot be placed since it causes graphic bugs
|
|
|
|
|
|
|
|
;createdLight = placeAtMe(LIGHT_toCreate)
|
|
|
|
;createdLight.setScale(0.99)
|
|
|
|
Endfunction
|
|
|
|
|
2021-10-11 18:39:58 +00:00
|
|
|
;/
|
2021-10-05 22:15:58 +00:00
|
|
|
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
|
|
|
|
if akOldContainer== None
|
|
|
|
createdLight.disable()
|
|
|
|
createdLight.delete()
|
|
|
|
Endif
|
|
|
|
Endevent
|
2021-10-11 18:39:58 +00:00
|
|
|
/;
|