Hi,
i can move in front of a door, but now i need to check if it is open.
If it is open i want to walk through.
If it is closed i want to open it, walk through it and close it again.
Found this in the questing sources:
But i cannot get it to work in the Plugin Editor. How to code that?
PS: I have already asked in the Archebuddy Support Forum, but probably it fits better here. As i cannot move/remove the other Thread, maybe somebody else can.
i can move in front of a door, but now i need to check if it is open.
If it is open i want to walk through.
If it is closed i want to open it, walk through it and close it again.
Found this in the questing sources:
Code:
MoveToAndWait(19968.09, 7681.23, 183.59);
var door = host.getNearestDoodad(11163);
if (door != null && host.dist(door) < 5)
{
host.UseDoodadSkill(16828, door, true);
Thread.Sleep(3000);
}
MoveToAndWait(19963.30, 7681.01, 183.59);
MoveToAndWait(19959.86, 7683.67, 183.59);
MoveToAndWait(19962.16, 7678.50, 183.59);
MoveToAndWait(19958.60, 7681.58, 183.59);
MoveToAndWait(19964.02, 7681.16, 183.59);
door = host.getNearestDoodad(11163);
if (door != null && host.dist(door) < 5)
{
host.UseDoodadSkill(16828, door, true);
Thread.Sleep(3000);
}
MoveToAndWait(19969.76, 7680.93, 183.59);
But i cannot get it to work in the Plugin Editor. How to code that?
PS: I have already asked in the Archebuddy Support Forum, but probably it fits better here. As i cannot move/remove the other Thread, maybe somebody else can.






