//Teleports Lanters to the Stonehedge at Night and out at Day. Triggered by player entering or leaving the area. void main() { object oLantern01=(GetObjectByTag("fr_lantern_t01")); object oLantern02=(GetObjectByTag("fr_lantern_t02")); object oLantern03=(GetObjectByTag("fr_lantern_t03")); object oLantern04=(GetObjectByTag("fr_lantern_t04")); object oLantern05=(GetObjectByTag("fr_lantern_t05")); object oLantern06=(GetObjectByTag("fr_lantern_t06")); object oLantern07=(GetObjectByTag("fr_lantern_t07")); object oLantern08=(GetObjectByTag("fr_lantern_t08")); if (GetIsNight()) { AssignCommand(oLantern01,JumpToObject(GetWaypointByTag("fr_tele_lantern01b"))); AssignCommand(oLantern02,JumpToObject(GetWaypointByTag("fr_tele_lantern02b"))); AssignCommand(oLantern03,JumpToObject(GetWaypointByTag("fr_tele_lantern03b"))); AssignCommand(oLantern04,JumpToObject(GetWaypointByTag("fr_tele_lantern04b"))); AssignCommand(oLantern05,JumpToObject(GetWaypointByTag("fr_tele_lantern05b"))); AssignCommand(oLantern06,JumpToObject(GetWaypointByTag("fr_tele_lantern06b"))); AssignCommand(oLantern07,JumpToObject(GetWaypointByTag("fr_tele_lantern07b"))); AssignCommand(oLantern08,JumpToObject(GetWaypointByTag("fr_tele_lantern08b"))); } if (GetIsDay()) { AssignCommand(oLantern01,JumpToObject(GetWaypointByTag("fr_tele_lantern01"))); AssignCommand(oLantern02,JumpToObject(GetWaypointByTag("fr_tele_lantern02"))); AssignCommand(oLantern03,JumpToObject(GetWaypointByTag("fr_tele_lantern03"))); AssignCommand(oLantern04,JumpToObject(GetWaypointByTag("fr_tele_lantern04"))); AssignCommand(oLantern05,JumpToObject(GetWaypointByTag("fr_tele_lantern05"))); AssignCommand(oLantern06,JumpToObject(GetWaypointByTag("fr_tele_lantern06"))); AssignCommand(oLantern07,JumpToObject(GetWaypointByTag("fr_tele_lantern07"))); AssignCommand(oLantern08,JumpToObject(GetWaypointByTag("fr_tele_lantern08"))); } }