I've made a weapon that is supposed to do the following:
Activate animation<idle state<charging animation<firing animation<return to idle state. Though since I don't know how to work states sequences, the animations don't play correctly.
Instead it skips the Activate Animation: and does the charge one. When the weapon is charged and fired: it plays the fire animation normally but stops at the end of the fire animation, ignoring the charge animation from then on until the weapon is re-equipped.
I'd appreciate the help of someone who understand torque script, and someone I could contact in the future if I have anymore trouble.
Wasn't really sure if this goes here, Help, General discussion or whatnot; since it's both torque script help and asking for someone to work with.
Current State sequence:
stateName[0] = "Activate";
stateTimeoutValue[0] = 1.5;
stateSequence[0] = "Activate";
stateTransitionOnTimeout[0] = "Ready";
stateSound[0] = weaponSwitchSound;
stateName[1] = "Ready";
stateTransitionOnTriggerDown[1] = "Charge";
stateAllowImageChange[1] = true;
stateName[2] = "Charge";
stateTransitionOnTimeout[2] = "Armed";
stateTimeoutValue[2] = 1.2;
stateSequence[0] = "Charge";
stateWaitForTimeout[2] = false;
stateTransitionOnTriggerUp[2] = "AbortCharge";
stateScript[2] = "onCharge";
stateAllowImageChange[2] = true;
stateName[3] = "AbortCharge";
stateTransitionOnTimeout[3] = "Ready";
stateTimeoutValue[3] = 0.001;
stateWaitForTimeout[3] = true;
stateScript[3] = "onAbortCharge";
stateAllowImageChange[3] = true;
stateName[4] = "Armed";
stateTransitionOnTriggerUp[4] = "Fire";
stateAllowImageChange[4] = false;
stateName[5] = "Fire";
stateTransitionOnTimeout[5] = "Ready";
stateTimeoutValue[5] = 0.5;
stateFire[5] = true;
stateSequence[5] = "Fire";
stateScript[5] = "onFire";
stateWaitForTimeout[5] = true;
stateAllowImageChange[5] = true;
stateSound[5] = PowerArcaneFireSound;