setsector[<sector id>].<functionname> <gamevar>
Use setsector to set the value of <functionname> 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 Sector Member Functions.