Code: Select all
function OpenAll()
list_of_gates = {"portcullis_1", "portcullis_2", "portcullis_3"}
for i =1, #list_of_gates do
list_of_gates[i]:open()
end
endCode: Select all
function OpenAll()
list_of_gates = {"portcullis_1", "portcullis_2", "portcullis_3"}
for i =1, #list_of_gates do
list_of_gates[i]:open()
end
endIf you clone a monster and change flying=true, to false they can effect pressure plates :3Adrageron wrote:For this purpose I've used hidden pressure plates, wich is triggered only by monsters. But that trick don't work with flyers.
Code: Select all
function OpenAll()
list_of_gates = {"portcullis_1", "portcullis_2", "portcullis_3"}
for i =1, #list_of_gates do
list_of_gates[i]:open()
end
endCode: Select all
function OpenAll()
list_of_gates = {"portcullis_1", "portcullis_2", "portcullis_3"}
for i =1, #list_of_gates do
print(list_of_gates[i])
end
endCode: Select all
function OpenAll()
local list_of_gates = {"portcullis_1", "portcullis_2", "portcullis_3"}
for i =1, #list_of_gates do
local door = findEntity(list_of_gates[i])
if (door == nil) then
print("Error: Can't find door ".. list_of_gates[i])
else
door:open()
end
end
end