Blockland Forums > Modification Help
Repetitive-Readying
Midway Sentinel:
I have a problem (obviously). Whenever my gun fires, it plays the "Ready" animation sequence. I tried removing the "Ready" section of the script after the "Fire" section and it didnt help, just made it play WITH the sound.
Code without "Ready":
--- Code: --- stateName[4] = "Reload";
stateSequence[4] = "Reload";
stateTransitionOnTriggerDown[4] = "Fire";
stateTransitionOnTriggerUp[4] = " ";
stateSequence[4] = " ";
--- End code ---
Chrono:
stateName[4] = "Reload";
stateSequence[4] = "Reload";
stateTransitionOnTriggerDown[4] = "Fire";
stateTransitionOnTriggerUp[4] = " ";
stateSequence[4] = " ";
Midway Sentinel:
--- Quote from: Chrono on November 11, 2010, 08:33:24 PM --- stateName[4] = "Reload";
stateSequence[4] = "Reload";
stateTransitionOnTriggerDown[4] = "Fire";
stateTransitionOnTriggerUp[4] = " ";
stateSequence[4] = " ";
--- End quote ---
so place "Reload" in
--- Code: ---stateSequence[4] = " ";
--- End code ---
Chrono:
Get rid of the second one, and post all of the state sequences, not just the reload.
Midway Sentinel:
--- Code: --- // Initial start up state
stateName[0] = "Activate";
stateTimeoutValue[0] = 0.23;
stateTransitionOnTimeout[0] = "Ready";
stateSound[0] = weaponReady;
stateName[1] = "Ready";
stateTransitionOnTriggerDown[1] = "Fire";
stateAllowImageChange[1] = true;
stateSequence[1] = "Ready";
stateName[2] = "Fire";
stateTransitionOnTimeout[2] = "Smoke";
stateTimeoutValue[2] = 0.09;
stateFire[2] = true;
stateAllowImageChange[2] = false;
stateSequence[2] = "Fire";
stateScript[2] = "onFire";
stateWaitForTimeout[2] = true;
stateEmitter[2] = AUG_A2FlashEmitter;
stateEmitterTime[2] = 0.08;
stateEmitterNode[2] = "muzzleNode";
stateSound[2] = AUG_A2Shot1Sound;
stateEjectShell[2] = true;
stateName[3] = "Smoke";
stateEmitter[3] = AUG_A2SmokeEmitter;
stateEmitterTime[3] = 0.12;
stateEmitterNode[3] = "muzzleNode";
stateTimeoutValue[3] = 0.0;
stateTransitionOnTimeout[3] = "Reload";
stateName[4] = "Reload";
stateSequence[4] = "Reload";
stateTransitionOnTriggerDown[4] = "Fire";
stateTransitionOnTriggerUp[4] = " ";
--- End code ---
like that?