Skip to content
User Avatar
#3930
Auto-translated
MaiorPain, I think using a separate thread is better; if you mess something up, it will only result in an unsuccessful cast, whereas without a thread, the function will crash and not execute the code.

And as I understand it, you're casting a unit during its turn in the UnitMove(unit) hook, right? Then, if the cast is successful, you just need this function to return not nil, and the game won't control that creature during that turn.
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо