- Joined
- Jul 22, 2015
- Messages
- 3,485
So I realized this problem AFTER uploading the spell into the resource section. It's an easy fix, but I'm not entirely sure how the moderators will feel about it.
My current setup is that after the dummy unit is created, I add an expired timer on it directly after.
With this method, the dummy unit will disappear right when the duration ends and all the deindex stuff happens, which is good
however, after realizing the potential of a caster dying during a channel, I had to add an extra condition in the loop that checks whether or not the caster is dead or if the duration is over.
Everything works except the dummy unit. Since I'm adding the the duration right after creation, the dummy won't actually disappear until its expiration timer is over xP again, this is an easy fix... but I'm not sure how the moderators would feel about it.
To get around this dummy unit issue, I was thinking maybe instead of adding the full expiration timer at the start of its creation, I can just add a 0.01 second expiration timer at the end of the spell so that the dummy unit will get removed when either conditions are met (note: DummyUnit has to be changed to an array that needs to be deindexed at the end of the spell like everything else)
My current setup is that after the dummy unit is created, I add an expired timer on it directly after.
|
With this method, the dummy unit will disappear right when the duration ends and all the deindex stuff happens, which is good
|
Everything works except the dummy unit. Since I'm adding the the duration right after creation, the dummy won't actually disappear until its expiration timer is over xP again, this is an easy fix... but I'm not sure how the moderators would feel about it.
To get around this dummy unit issue, I was thinking maybe instead of adding the full expiration timer at the start of its creation, I can just add a 0.01 second expiration timer at the end of the spell so that the dummy unit will get removed when either conditions are met (note: DummyUnit has to be changed to an array that needs to be deindexed at the end of the spell like everything else)
|
Last edited: