enderalse/source/scripts/_00e_playerhousing_lightfurniture.psc

22 lines
675 B
Plaintext

Scriptname _00E_Playerhousing_LightFurniture extends _00E_Playerhousing_Furniture
Light Property LIGHT_toCreate auto
{not used due to graphic bugs}
ObjectReference createdLight
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
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
if akOldContainer== None
createdLight.disable()
createdLight.delete()
Endif
Endevent