That means where the object is.
If you want a portal that is located at 2260, 3916 to teleport you. you would use those coords, but if it is somewhere else you're going to have to change the coords to wherever this object is.
|
Ok im trying to add the oblesiks i thing that what there called i just want them to teleport so i made this
but it dont work the bit that i dont get isif ((objectID == 14831) && (objectX == 2260) && (objectY == 3916)) {
triggerTele(2260, 3916, 0);
sM("You teleport away");
}
idk what that means so i just put coordsi n(objectX == 2260) && (objectY == 3916))
That means where the object is.
If you want a portal that is located at 2260, 3916 to teleport you. you would use those coords, but if it is somewhere else you're going to have to change the coords to wherever this object is.
They are the objectX and objectY of the object your clicking, so what you did is correct.
Also there is no need for lots of enclosing booleans, you could just do:
Code:if (objectID == 14831 && objectX == 2260 && objectY == 3916) { triggerTele(2260, 3916, 0); sM("You teleport away"); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |