I want to know how to Script this:
2 x Daemon heads on the wall (opposite from each other)
2 x Eye sockets (one on each head)
1 x Door
1 x dm_yellow_gem (into daemon head 1)
1 x dm_blue_gem (into Daemon head 2)
1 x Counter (Initial Value set 2)
What I need to happen is when the player puts one of the Gems in each of the Daemon head eye's a door will open. It does not matter if the Gems go into left or right eyes on the Daemon heads..
The gems to open the door are the gems I have specified. No other gems can open the door..
Any help how to do this would be great thank you.
EDIT: I can do it with one of the eyes and with one gems and one daemon head EG:
function End2()
for i in end1:containedItems() do --- end1 is the eye socket --
if i.name == "dm_gem_blue" then --- One of the Gems --
i:destroy()
enddoor:open() --- The Door that opens --
playSound("level_up")
end
end
end
Don't know how to do it with both eyes and gems in the two daemon heads..