Skip to content
User Avatar
#3751
Auto-translated
Azgalor
Yeah, it's a pity that you can't pass heroes as arguments. Unfortunately, nothing I tried in the combat script itself worked; I tested it on the playAnimation function and constantly received the error "Hero "hero" doesn't exist," so I came to the conclusion that the combat script is essentially a separate script, so you can load it a bit. Therefore, I'll write the fight twice, depending on which side the heroes are on. However, thank you for your answer and recommendation
Theoretically, I think your question can be solved, and solved correctly. However, I haven't tried writing combat scripts myself, so I might not understand the nuances of the mechanics, so I can't help. And since Khottabych hasn't responded, it probably means it's either a hassle or it's not possiblesmile04


Не уходи безропотно во тьму,
Будь яростней пред ночью всех ночей,
Не дай погаснуть свету своему!

Хоть мудрый знает – не осилишь тьму
Во мгле словами не зажжёшь лучей –
Не уходи безропотно во тьму.