[11115] Implement .gm setview command

This commit is contained in:
SilverIce 2011-02-07 04:14:09 +02:00
parent b2d81eae1b
commit 50e681146e
7 changed files with 27 additions and 1 deletions

View file

@ -2241,3 +2241,17 @@ bool ChatHandler::HandleModifyDrunkCommand(char* args)
return true;
}
bool ChatHandler::HandleSetViewCommand(char* /*args*/)
{
if (Unit* unit = getSelectedUnit())
m_session->GetPlayer()->GetCamera().SetView(unit);
else
{
PSendSysMessage(LANG_SELECT_CHAR_OR_CREATURE);
SetSentErrorMessage(true);
return false;
}
return true;
}