Parallel execution of functions
Posted: Thu Sep 22, 2011 6:21 pm
Hi!
How can I execute the same function twice at the same time?
My problem is, when more than one enemy should attack the player, only one does it.
And after the first enemy's enemyAttack function ends (dies,or something), the second enemy's function starts.
It's weird, and I want them to attack the player at the same time.
How can I achieve this?
(Maybe it's not an Irrlicht-specific question, but if you know the answer, share it with me/with the community, thx.)
How can I execute the same function twice at the same time?
My problem is, when more than one enemy should attack the player, only one does it.
And after the first enemy's enemyAttack function ends (dies,or something), the second enemy's function starts.
It's weird, and I want them to attack the player at the same time.
How can I achieve this?
(Maybe it's not an Irrlicht-specific question, but if you know the answer, share it with me/with the community, thx.)