mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11115] Implement .gm setview command
This commit is contained in:
parent
b2d81eae1b
commit
50e681146e
7 changed files with 27 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue