Core/SAI: Implement a new action type to make a creature (or targets in list) start the closest waypoint available to them

This commit is contained in:
Discover- committed 2014-09-03 20:11:15 +02:00
1 parent c5f475c114
commit 6066ec0949
3 files changed
+71 -1

No files matched your search

@@ -529,8 +529,9 @@ enum SMART_ACTION
SMART_ACTION_REMOVE_POWER = 110, // PowerType, newPower
SMART_ACTION_GAME_EVENT_STOP = 111, // GameEventId
SMART_ACTION_GAME_EVENT_START = 112, // GameEventId
SMART_ACTION_START_CLOSEST_WAYPOINT = 113, // wp1, wp2, wp3, wp4, wp5, wp6, wp7
SMART_ACTION_END = 113
SMART_ACTION_END = 114
};
struct SmartAction
@@ -987,6 +988,16 @@ struct SmartAction
uint32 id;
} gameEventStart;
struct
{
uint32 wp1;
uint32 wp2;
uint32 wp3;
uint32 wp4;
uint32 wp5;
uint32 wp6;
} closestWaypointFromList;
//! Note for any new future actions
//! All parameters must have type uint32