Merge pull request #15191 from Rushor/action
Core/SAI: Add SMART_ACTION_RISE_UP for Z Axis (cherry picked from commit ba6da26e5db8cd6c3418d2a401e84d8701ac89f1)
This commit is contained in:
1 parent
747a3f1d38
commit
513b756ea8
3 files changed
+11
-1
No files matched your search
@@ -1136,6 +1136,14 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
me->GetMotionMaster()->MovePoint(SMART_RANDOM_POINT, x, y, z);
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_RISE_UP:
|
||||
{
|
||||
if (!me)
|
||||
break;
|
||||
|
||||
me->GetMotionMaster()->MovePoint(SMART_RANDOM_POINT, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ() + (float)e.action.moveRandom.distance);
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_SET_VISIBILITY:
|
||||
{
|
||||
if (me)
|
||||
|
||||
Reference in new issue
Block a user