public function setAlert(SR_Party $party, $duration = 600, $announce = true) { $party->setTemp($this->getAlertKey($party), Shadowrun4::getTime() + $duration); if ($announce) { $party->ntice('5021'); // $party->notice(sprintf('You hear the alarm sound!')); } }