RogerBacon
King
- Joined
- Nov 16, 2003
- Messages
- 649
How can I get the game to call onUnitPromoted (or any other event for that matter)?
In my CustomEventManager I have several python classes that have onUnitPromoted and now I am giving a unit a promotion through python but I want to make sure those other classes' onUnitPromoted method is called.
[EDIT]
Nevermind. The problem was that I was not putting the argsList into a single variable array and so I was passing the wrong number of arguments.
Roger Bacon
In my CustomEventManager I have several python classes that have onUnitPromoted and now I am giving a unit a promotion through python but I want to make sure those other classes' onUnitPromoted method is called.
[EDIT]
Nevermind. The problem was that I was not putting the argsList into a single variable array and so I was passing the wrong number of arguments.
Roger Bacon