A
Arcy
Guest
Hi,
I have a program for open my door with sensor but my door is permanently opened.
For avoid this, I thinking implement coordinates of player to open or close door but I fail to get properties of object returned.
For players lists at proximity, I written :
[...]
while true do
end
[...]
Thanks
I have a program for open my door with sensor but my door is permanently opened.
For avoid this, I thinking implement coordinates of player to open or close door but I fail to get properties of object returned.
For players lists at proximity, I written :
[...]
while true do
list = sensor.getPlayers()
for i in pairs(list) do
end
for i in pairs(list) do
p = list.name
if p == "Arcy" then
if p == "Arcy" then
open = true
elseopen = false
endend
end
[...]
Thanks