Just a basic NASC idea....
Code:
class door_open_toi : default_npc
{
parameter:
int Timer = 1234;
int TimerID = 1234;
handler:
EventHandler CREATED() {
AddTimerEx(TimerID, Timer);
}
EventHandler TIMER_FIRED_EX(timer_id) {
if (timer_id == TimerID) {
DoorFunction(Door, open); // You will need to look this function up
AddTimerEX(TimerID, Timer);
}
}
}
Replace DoorFunction with the proper door opening function, I'm currently not at home and I do not remember it off the top of my head, it's pretty obvious however.
Attach that AI to an "invisible" npc (one that has an extremely high col_height) and spawn it near the TOI door, and in theory it should work.