I just want to make it so when you use a key on a door it opens.
I've made so it wont open on just a click.
I thought i just could add this code:
Code:
case 2559: // The door
if(itemId = 3606) { // The key
c.getPA().object(-1, obX, obY, 0, 0); //This is the code used for all of the other global doors and other stuff.
}
But i just get the error that the variable itemId cannot be found. Arent i suppose to import where the itemId variable is made? I tried importing everything with "itemId" in it but it still wouldnt work... Anyone know how to fix this?