there is a tutorial for this in the tutorials section
|
How can I open a door? like make the door actually open not just tele on the other side?
is there a remove object method?
rep++ if helped.
there is a tutorial for this in the tutorials section
Etc.
100% credit to enzoCode:case 36844: //Lumb door to kitchen p.frames.createGlobalObject(36844, 0, 3208, 3211, -2, 0); break; case 36846: //Lumb castle back doors p.frames.createGlobalObject(36844, 0, 3201, 3219, -3, 0); break; case 12348: //Lumb kitchen door to Dining room p.frames.createGlobalObject(12348, 0, 3207, 3217, -2, 0); break; case 12349: //Lumb door to Dining room p.frames.createGlobalObject(12349, 0, 3213, 3222, -3, 0); p.frames.createGlobalObject(12350, 0, 3213, 3221, -1, 0); break; case 12350: //Lumb door to Dining room p.frames.createGlobalObject(12349, 0, 3213, 3222, -3, 0); p.frames.createGlobalObject(12350, 0, 3213, 3221, -1, 0); break;
this is for doors that have the same id and all i'm telling is it goes in ObjectOption1.javaCode:case 11714: if(p.absX == 2973 && p.absY == 3348 && p.heightLevel == 0) { p.frames.createGlobalObject(11714, 0, 2973, 3348, -2, 0); } else if(p.absX == 2978 && p.absY == 3346 && p.heightLevel == 0) { p.frames.createGlobalObject(11714, 0, 2978, 3346, -2, 0); } else if(p.absX == 2983 && p.absY == 3348 && p.heightLevel == 0) { p.frames.createGlobalObject(11714, 0, 2983, 3348, -2, 0); } break;
If you want doors that go open and close after you could use codes like these (Need a event implented)
Either do what the guys posted above.Code:case 15644: // Door to animators if (p.absX == 2855 && p.absY == 3545) { p.reqWalkQueue(2855, 3546); p.frames.createGlobalObject(15644, 0, 2855, 3545, 0, 0); EventManager.getSingleton().addEvent(new Event() { @Override public void execute(EventContainer event) { p.frames.createGlobalObject(15644, 0, 2855, 3545, 3, 0); event.stop(); } }, 600); // 500 mili seconds } break;
weird because i tried spawning a object over the door, and it wasn't working, but thanks i guess i was doing it wrong.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |