*Do not call reset in construct funciton of script.

*Add function doaction to safely pass parameters between scripts.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-31 18:12:49 -06:00
parent bd1a630463
commit 7f209249a2
270 changed files with 335 additions and 578 deletions
+1
View File
@@ -616,6 +616,7 @@ bool Creature::AIM_Initialize(CreatureAI* ai)
i_motionMaster.Initialize();
i_AI = ai ? ai : FactorySelector::selectAI(this);
IsAIEnabled = true;
i_AI->Reset();
return true;
}