4
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.
 
 
 

23 lines
682 B

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
/;