Hello, I'm working on a firestaff for an add-on but I've reached a problem with animation and the timing of it. I want my staff to stay at a constant frame when its firing and reach that frame with another animation.
Basically they are called
PreFire: Player moves the staff down and moves one hand to the edge.
Fire: Player holds the staff there until the weapon has stopped being fired.
Reload: Player brings the staff back up.
Prefire is a animation about 8-10 frames at 18 fps.
Fire is one frame.
Reload is 8-12 frames at 18 fps.
They animation seems good but the only problem i have is making it stay at a constant frame.
stateName[0] = "Activate";
stateTimeoutValue[0] = 0.1;
stateTransitionOnTimeout[0] = "Ready";
stateAllowImageChange[0] = true;
stateName[1] = "Ready";
stateSequence[1] = "Fire";
stateTransitionOnTriggerDown[1] = "Fire";
stateAllowImageChange[1] = true;
stateEmitter[1] = EpicFireStaffAmbientEmitter;
stateEmitterNode[1] = MuzzlePoint;
stateEmitterTime[1] = 300;
stateName[2] = "Fire";
stateTransitionOnTimeout[2] = "StopFire";
stateSequence[2] = "PreFire";
stateTimeoutValue[2] = 0.1;
stateFire[2] = true;
stateAllowImageChange[2] = true;
stateSequence[2] = "Fire";
stateScript[2] = "onFire";
stateWaitForTimeout[2] = true;
stateSound[2] = EpicFireStaffFireSound;
stateName[3] = "StopFire";
stateTransitionOnTimeout[3] = "Ready";
stateTimeoutValue[3] = 0.1;
stateAllowImageChange[3] = true;
stateWaitForTimeout[3] = true;
stateSequence[3] = "Reload";
stateScript[3] = "onStopFire";
};
Any help will be appreciated.