| Blockland Forums > Modification Help |
| Weapon [Can't Get My Gun To Shoot Faster] {Solved} |
| (1/2) > >> |
| Uxie:
I can't get my Machine Gun to shoot more per second. I have Tried stateTimeoutValue[2] and [0]. There is no stateTimeoutValue[1] and [3] and [4]. Are these the right parts of the script? --- Code: --- // Images have a state system which controls how the animations // are run, which sounds are played, script callbacks, etc. This // state system is downloaded to the client so that clients can // predict state changes and animate accordingly. The following // system supports basic ready->fire->reload transitions as // well as a no-ammo->dryfire idle state. // Initial start up state stateName[0] = "Activate"; stateTimeoutValue[0] = 0.0; stateTransitionOnTimeout[0] = "Ready"; stateSound[0] = weaponSwitchSound; stateName[1] = "Ready"; stateTransitionOnTriggerDown[1] = "Fire"; stateAllowImageChange[1] = true; stateSequence[1] = "Ready"; stateName[2] = "Fire"; stateTransitionOnTimeout[2] = "Smoke"; stateTimeoutValue[2] = 0.0; stateFire[2] = true; stateAllowImageChange[2] = false; stateSequence[2] = "Fire"; stateScript[2] = "onFire"; stateWaitForTimeout[2] = true; stateEmitter[2] = MachineGunFlashEmitter; stateEmitterTime[2] = 0.05; stateEmitterNode[2] = "muzzleNode"; stateSound[2] = MachineGunShot1Sound; stateEjectShell[2] = true; stateName[3] = "Smoke"; stateEmitter[3] = MachineGunSmokeEmitter; stateEmitterTime[3] = 0.05; stateEmitterNode[3] = "muzzleNode"; stateTimeoutValue[3] = 0.01; stateTransitionOnTimeout[3] = "Reload"; stateName[4] = "Reload"; stateSequence[4] = "Reload"; stateTransitionOnTriggerDown[4] = "Fire"; stateTransitionOnTriggerUp[4] = "Ready"; stateSequence[4] = "Ready"; }; --- End code --- |
| MrBloxxer:
Before you even dream of doing that. Redo that model. |
| Amade:
Remove state 4 entirely and change state 3's transition to Ready. |
| Uxie:
--- Quote from: MrBloxxer on June 23, 2010, 11:41:50 AM ---Before you even dream of doing that. Redo that model. --- End quote --- It's not done. --- Quote from: Amade on June 23, 2010, 02:46:54 PM ---Remove state 4 entirely and change state 3's transition to Ready. --- End quote --- Works. Thank you. |
| Pew446:
I think the model is cool :D |
| Navigation |
| Message Index |
| Next page |