Core/SmartAI: Allow SMART_ACTION_SET_ACTIVE to take a parameter for on/off (true/false). Required for upcoming EAI to SAI conversion (https://github.com/Discover-/EventAI-to-SmartAI)

This commit is contained in:
Discover- committed 2013-08-07 02:41:58 +02:00
1 parent 5164caa9ff
commit d87b0fff2f
2 files changed
+9 -4

No files matched your search

@@ -429,7 +429,7 @@ enum SMART_ACTION
SMART_ACTION_SET_DATA = 45, // Field, Data (only creature @todo)
SMART_ACTION_MOVE_FORWARD = 46, // distance
SMART_ACTION_SET_VISIBILITY = 47, // on/off
SMART_ACTION_SET_ACTIVE = 48, // No Params
SMART_ACTION_SET_ACTIVE = 48, // on/off
SMART_ACTION_ATTACK_START = 49, //
SMART_ACTION_SUMMON_GO = 50, // GameObjectID, DespawnTime in ms,
SMART_ACTION_KILL_UNIT = 51, //
@@ -726,6 +726,11 @@ struct SmartAction
uint32 despawnTime;
} summonGO;
struct
{
uint32 state;
} active;
struct
{
uint32 id;