From 7f209249a26d76ee01db9c128226a24d87629553 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 31 Mar 2009 18:12:49 -0600 Subject: *Do not call reset in construct funciton of script. *Add function doaction to safely pass parameters between scripts. --HG-- branch : trunk --- src/bindings/scripts/include/sc_creature.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bindings/scripts/include') diff --git a/src/bindings/scripts/include/sc_creature.h b/src/bindings/scripts/include/sc_creature.h index 5e0e185a9dd..a545d47332b 100644 --- a/src/bindings/scripts/include/sc_creature.h +++ b/src/bindings/scripts/include/sc_creature.h @@ -149,6 +149,8 @@ struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI void DoTeleportTo(float x, float y, float z, uint32 time = 0); + void DoAction(const int32 param) {} + //Teleports a player without dropping threat (only teleports to same map) void DoTeleportPlayer(Unit* pUnit, float x, float y, float z, float o); void DoTeleportAll(float x, float y, float z, float o); -- cgit v1.2.3