*Update movement enums - thanks to Zor for info.
*Add functions for position data streaming. --HG-- branch : trunk
This commit is contained in:
@@ -291,7 +291,7 @@ struct instance_zulfarrak : public ScriptedInstance
|
||||
{
|
||||
if (npc->isAlive())
|
||||
{
|
||||
npc->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
|
||||
npc->AddUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
npc->GetMotionMaster()->MovePoint(1,x,y,z);
|
||||
npc->SetHomePosition(x,y,z,o);
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ void initBlyCrewMember(ScriptedInstance* pInstance, uint32 entry,float x,float y
|
||||
if (Creature* crew = pInstance->instance->GetCreature(pInstance->GetData64(entry)))
|
||||
{
|
||||
crew->SetReactState(REACT_AGGRESSIVE);
|
||||
crew->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
|
||||
crew->AddUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
crew->SetHomePosition(x,y,z,0);
|
||||
crew->GetMotionMaster()->MovePoint(1,x,y,z);
|
||||
crew->setFaction(FACTION_FREED);
|
||||
|
||||
Reference in New Issue
Block a user