Getsector
getsector[<sector id>].<functionname> <gamevar>
Use getsector to get the value of <functionname> and save it to the gamevar <gamevar> within the sector determined by the gamevar <sector id>. You can use THISACTOR as the <sector id> for the sector in which the current actor is in. See Members of the sector structure.