Have you ever wondered why some weapons are chargeable, like Thirsha 2nd/3rd attacks, and others are not, like Elsin meteor?
This happens because in Elsin animation script (.cob file), when you stop aiming by pressing S or start moving in a different direction, the following is called:
set WEAPON_AIM_ABORTED to Static_Var_10;
kill_attack = TRUE;
and before any attack, there is a check whether kill_attack is true or not:
if( !kill_attack )
set WEAPON_LAUNCH_NOW to Func_Var_1;
play-sound( "SWOOSH6", PLAYSOUND_PRIORITY_BATTLE );
Basically, what it says is: Target is cleared, your attack won't be launched.
Also, kill_attack var is set to false before starting the fire weapon animation:
firing = TRUE;
kill_attack = FALSE;
Thirsha and units that can charge weapons don't have this. So that's how you fix it, if you don't want your weapons to be chargeable, make a variable to control when your attack can be launched or not.
GameRanger Account ID: 1184157
E-mail (Skype, Outlook and Facebook): Henrique-MS@Outlook.com
All TA:K Downloads Youtube Channel: https://www.youtube.com/AllTAKDownloads
All TA:K Downloads Facebook Page: https://www.facebook.com/AllTAKDownloads