blob: 1fc4163d8135eecc2bb0e1652d673c09e9d39877 (
plain) (
tree)
|
|
// Evol functions.
// Authors:
// 4144
// Description:
// Doors utility functions
// Variables:
// none
function script doorTouch {
if (getareausers() <= 1)
{
setnpcdir 2;
stopnpctimer;
initnpctimer;
}
close;
}
function script doorUnTouch {
if (getareausers() == 0)
{
setnpcdir 4;
initnpctimer;
startnpctimer;
}
close;
}
function script doorTimer {
stopnpctimer;
if (getnpcdir() == 2) setnpcdir 6;
if (getnpcdir() == 4) setnpcdir 8;
end;
}
|