Add Ability for db script command SCRIPT_COMMAND_ORIENTATION to set creature orientation to face player.
--HG-- branch : trunk
This commit is contained in:
+5
-3
@@ -3697,10 +3697,12 @@ void Map::ScriptsProcess()
|
||||
sLog.outError("SCRIPT_COMMAND_ORIENTATION call for NULL creature.");
|
||||
break;
|
||||
}
|
||||
|
||||
source->ToCreature()->SetOrientation(step.script->o);
|
||||
Unit* pPlayer = (Unit*)source;
|
||||
if (step.script->datalong)
|
||||
source->ToCreature()->SetInFront(pPlayer);
|
||||
else
|
||||
source->ToCreature()->SetOrientation(step.script->o);
|
||||
source->ToCreature()->SendMovementFlagUpdate();
|
||||
|
||||
break;
|
||||
}
|
||||
case SCRIPT_COMMAND_EQUIP:
|
||||
|
||||
Reference in New Issue
Block a user