| Blockland Forums > Modification Help |
| Sword not shooting projectiles at all |
| (1/4) > >> |
| YoshiDude:
Okay, so this weapon I've had no problems with whatsoever until recently. It doesn't shoot the projectile and in turn hits nothing. I can make a brick spawn the projectile just fine and it hits just fine but this sword isn't working for whatever reason. --- Code: ---datablock ProjectileData(LoZSwordProjectile) { directDamage = 40; directDamageType = $DamageType::LoZSword; radiusDamageType = $DamageType::LoZSword; explosion = LoZSwordExplosion; //particleEmitter = as; muzzleVelocity = 70; velInheritFactor = 1; armingDelay = 0; lifetime = 200; fadeDelay = 70; bounceElasticity = 0; bounceFriction = 0; isBallistic = false; gravityMod = 0.0; hasLight = false; lightRadius = 3.0; lightColor = "0 0 0.5"; uiName = "LV1 Sword Slice"; }; --- End code --- --- Code: --- projectile = LoZSwordProjectile; projectileType = Projectile; -cut- stateName[3] = "Fire"; stateTransitionOnTimeout[3] = "Charge"; stateTimeoutValue[3] = 0.125; stateFire[3] = true; stateAllowImageChange[3] = false; stateSound[3] = LoZSwordSlashSound; stateSequence[3] = "attack"; //stateScript[3] = "onFire"; stateWaitForTimeout[3] = true; --- End code --- Looks fine to me, but... what do I know? |
| tyler0:
--- Quote from: YoshiDude on June 12, 2011, 02:17:50 PM ---[*]What's the default onFire script? I'd rather copy that than create a new image for this thing I'm working on. [/list] --- End quote --- I have been wondering that too. Have you tried tracing a couple of items to see? |
| YoshiDude:
--- Quote from: tyler0 on June 12, 2011, 02:31:16 PM ---I have been wondering that too. Have you tried tracing a couple of items to see? --- End quote --- Yes. The default Sword doesn't have it. Haven't checked the Gun yet. |
| YoshiDude:
Nothing in the Gun having to do with onFire, except the recoil animation. It's probably not in any of the weapons, considering I have them all disabled except for what I'm testing. |
| YoshiDude:
Wow. Is it just me or do my topics never get replies? I feel so badly ignored. None of these four questions have been answered yet. |
| Navigation |
| Message Index |
| Next page |