- Joined
- May 24, 2016
- Messages
- 339
So basically, I needed a mount system that is based on a channelling skill. Once it casted, Paladin gets on horse (HOTS like mount system), still able to use his skills, items and attacks as before, but if he gets damage, he will get unmounted back to his original model.
The problem is, since warcraft 1.26 has no any proper functions to change model, I HAVE TO switch Paladins player's hero between 2 types of him, holding 1 type outside the playground of a map, changing its ownership to neutral player. Once paladin (his standard type or mounted) cast any spell, other one has to cast it too, so I can sync their spell cd in case of their swap.
This is ridiculous, but it least it works, except the thing that if "controllable hero" (the one that currently is controlled by player) will start casting any spell and then just stops it, the other one will still use it's spell, making their spell cd desync.
Is there a proper way to detect if spell is going to be used before spell effect is already casted? I mean, if I try to sync them with "spell effect" event, there might be a chance that their swap will be faster than the other one outside the playground will cast his skill too before getting swapped with controllable.
The problem is, since warcraft 1.26 has no any proper functions to change model, I HAVE TO switch Paladins player's hero between 2 types of him, holding 1 type outside the playground of a map, changing its ownership to neutral player. Once paladin (his standard type or mounted) cast any spell, other one has to cast it too, so I can sync their spell cd in case of their swap.
This is ridiculous, but it least it works, except the thing that if "controllable hero" (the one that currently is controlled by player) will start casting any spell and then just stops it, the other one will still use it's spell, making their spell cd desync.
Is there a proper way to detect if spell is going to be used before spell effect is already casted? I mean, if I try to sync them with "spell effect" event, there might be a chance that their swap will be faster than the other one outside the playground will cast his skill too before getting swapped with controllable.