lua sleep() for multiple fireballs
Posted: Fri Jan 10, 2014 2:58 pm
Hi all,
I've tried to create a new spell - based on the original fireball spell - that cast a fireball every few milliseconds. The number of fireballs depends of caster's skill. The simplest way was to use a sleep(300) commande in lua spell object, but it not seems to work.
Is it possible?
To achieve my goal, I've created a script hook that temporary spawn a spawner, a counter and a timer, but in this case fireballs are spawn from the center of the square in front of the party.
How can I spawn a "real fireball", created from behind the screen on caster's side, with the same effects?
In other words, what is the equivalent script command to the "fireball" command in the original fireball spell's object?
Thanks,
Lex
I've tried to create a new spell - based on the original fireball spell - that cast a fireball every few milliseconds. The number of fireballs depends of caster's skill. The simplest way was to use a sleep(300) commande in lua spell object, but it not seems to work.
Is it possible?
To achieve my goal, I've created a script hook that temporary spawn a spawner, a counter and a timer, but in this case fireballs are spawn from the center of the square in front of the party.
How can I spawn a "real fireball", created from behind the screen on caster's side, with the same effects?
In other words, what is the equivalent script command to the "fireball" command in the original fireball spell's object?
Thanks,
Lex