Beacons and Essences?
Posted: Wed Feb 25, 2015 11:21 pm
So I have been trying to utilize an "Insert proper item in alcove" type section in a mod I'm working on using a script I found on here
The only problem is when I place an air essence on the beacon it just disappears entirely, the sound and light changes as if it is hovering on the pedestal but my door doesn't open and the essence disappears. I tried again on a beacon without the script attached and the essence just disappears every time I try placing it on any beacon, is this a problem in using beacons specifically? what is a way around this?
EDIT: I fixed the script problem, I just switched every word surface in the scrip to the word socket because the beacons appear to not actually have a surface, instead they have sockets and it worked, however the essence still disappears upon placing in socket instead of floating above it like expected. anyone know why?
Code: Select all
function surfaceContains(surface, item)
for v,i in surface:contents() do
if i.go.name == item then return true
end
end
end
function openPowerGemDoor()
if surfaceContains(airbeacon.surface, "essence_air") then
doorwoods.door:open()
else
doorwoods.door:close()
end
endEDIT: I fixed the script problem, I just switched every word surface in the scrip to the word socket because the beacons appear to not actually have a surface, instead they have sockets and it worked, however the essence still disappears upon placing in socket instead of floating above it like expected. anyone know why?