| Blockland Forums > Modification Help |
| projectile like /alarm not working (showing up as a blank box) |
| (1/1) |
| herb:
tell me, why this is showing up as a blank box, instead of just the exclamtion, thanks! --- Code: ---function serverCmdalert(%client) { if(%client.player !$= "") %client.player.emote(alertprojectile); } datablock ParticleData(AlertParticle) { dragCoefficient = 5.0; gravityCoefficient = 0.0; inheritedVelFactor = 0.0; windCoefficient = 0; constantAcceleration = 0.0; lifetimeMS = 500; lifetimeVarianceMS = 0; useInvAlpha = false; textureName = "base/data/particles/exclamation"; colors[0] = "1 1 1 1"; colors[1] = "1 1 1 1"; colors[2] = "1 1 1 1"; sizes[0] = 0.9; sizes[1] = 0.9; sizes[2] = 0.9; times[0] = 0.0; times[1] = 0.2; times[2] = 1.0; }; datablock ParticleEmitterData(AlertEmitter) { ejectionPeriodMS = 35; periodVarianceMS = 0; ejectionVelocity = 0.0; ejectionOffset = 1.8; velocityVariance = 0.0; thetaMin = 0; thetaMax = 0; phiReferenceVel = 0; phiVariance = 0; overrideAdvance = false; lifeTimeMS = 100; particles = "AlertParticle"; doFalloff = false; emitterNode = GenericEmitterNode; pointEmitterNode = TenthEmitterNode; uiName = "Emote - Alert"; }; datablock ExplosionData(AlertExplosion) { lifeTimeMS = 2000; emitter[0] = AlertEmitter; }; datablock ProjectileData(AlertProjectile) { explosion = AlertExplosion; armingDelay = 0; lifetime = 10; explodeOnDeath = true; uiName = "Alert Emote"; }; --- End code --- |
| Pah1023:
Aren't you supposed to do like exclamation.png or .jpg or whatever in the textureName? |
| Crysist:
--- Quote from: Pah1023 on July 27, 2010, 08:53:33 PM ---Aren't you supposed to do like exclamation.png or .jpg or whatever in the textureName? --- End quote --- No, you don't. |
| Navigation |
| Message Index |