Skip to content

TriangleEffect

Built-in constants:

rand v none blockCrash trailFade unitSpawn unitCapKill unitEnvKill unitControl unitDespawn unitSpirit itemTransfer pointBeam pointHit hitScepterSecondary lightning coreBuildShockwave coreBuildBlock pointShockwave moveCommand attackCommand commandSend upgradeCore upgradeCoreBloom placeBlock coreLaunchConstruct tapBlock breakBlock payloadDeposit select smoke fallSmoke unitWreck rocketSmoke rocketSmokeLarge magmasmoke spawn unitAssemble padlaunch breakProp unitDrop unitLand unitDust unitLandSmall unitPickup crawlDust landShock pickup sparkExplosion titanExplosion titanExplosionLarge titanExplosionSmall titanExplosionFrag titanSmoke titanSmokeLarge titanSmokeSmall coreExplosion smokeAoeCloud missileTrailSmoke missileTrailSmokeSmall neoplasmSplat scatheExplosion scatheExplosionSmall scatheLight scatheLightSmall titanLightSmall scatheSlash dynamicSpikes greenBomb greenLaserCharge greenLaserChargeSmall greenCloud healWaveDynamic healWave heal dynamicWave shieldWave shieldApply disperseTrail hitBulletSmall hitBulletColor hitSquaresColor squareWaveEffect hitFuse hitBulletBig hitFlameSmall hitFlamePlasma hitLiquid hitLaserBlast hitEmpSpark hitLancer hitLancerLow hitBeam hitFlameBeam hitMeltdown hitMeltHeal instBomb instTrail instShoot instHit hitLaser hitLaserColor despawn airBubble flakExplosion plasticExplosion plasticExplosionFlak blastExplosion sapExplosion massiveExplosion artilleryTrail incendTrail missileTrail missileTrailShort bulletSparkSmokeTrailSmall colorTrail absorb forceShrink flakExplosionBig burning fireRemove fire fireHit fireSmoke neoplasmHeal steam ventSteam drillSteam fluxVapor corrosionVapor vapor vaporSmall fireballsmoke ballfire freezing melting wet muddy sapped electrified sporeSlowed oily overdriven overclocked dropItem shockwave shockwaveSmaller bigShockwave spawnShockwave podLandShockwave explosion dynamicExplosion reactorExplosion impactReactorExplosion blockExplosionSmoke steamCoolSmoke smokePuff shootSmall shootSmallColor shootHeal shootHealYellow shootSmallSmoke shootBig shootBig2 shootBigColor shootScepterSecondary shootQuellPulse shootTitan shootBigSmoke shootBigSmoke2 shootSmokeDisperse shootSmokeSquare shootSmokeSquareSparse shootSmokeSquareBig shootSmokeTitan shootSmokeSmite shootSmokeMissile shootSmokeMissileColor regenParticle regenSuppressParticle regenSuppressSeek surgeCruciSmoke neoplasiaSmoke heatReactorSmoke circleColorSpark colorSpark colorSparkBig randLifeSpark shootPayloadDriver shootSmallFlame shootPyraFlame shootLiquid casing1 casing2 casing3 casing4 casing2Double casing3Double railShoot railTrail railHit lancerLaserShoot lancerLaserShootSmoke lancerLaserCharge lancerLaserChargeBegin lightningCharge sparkShoot lightningShoot thoriumShoot reactorsmoke redgeneratespark turbinegenerate generatespark fuelburn incinerateSlag coreBurn plasticburn conveyorPoof pulverize pulverizeRed pulverizeSmall pulverizeMedium producesmoke artilleryTrailSmoke smokeCloud smeltsmoke coalSmeltsmoke formsmoke blastsmoke lava dooropen doorclose dooropenlarge doorcloselarge generate mineWallSmall mineSmall mine mineBig mineHuge mineImpact mineImpactWave payloadReceive teleportActivate teleport teleportOut ripple bubble launchAccelerator launch launchPod healWaveMend overdriveWave healBlock healBlockFull rotateBlock lightBlock overdriveBlockFull shieldBreak arcShieldBreak coreLandDust podLandDust unitShieldBreak chainLightning chainEmp legDestroy debugLine debugRect

TriangleEffect

extends Effect

Creates a triangle with heavily customizable parameters.

field type default notes
colorFrom Color ffffffff Triangle color.
colorTo Color ffffffff Triangle color.
flippable boolean false Gives the effect flipping compatability like casing effects.
interp Interp linear Triangle position interpolation. Also used as a fallback.
widthInterp Interp null Width interpolation. Null to use interp.
heightInterp Interp null Height interpolation. Null to use interp.
colorInterp Interp null Triangle color interpolation. Null to use interp.
startX float 0.0 Controls the starting and ending positions of the triangle.
startY float 0.0 Controls the starting and ending positions of the triangle.
endX float 0.0 Controls the starting and ending positions of the triangle.
endY float 0.0 Controls the starting and ending positions of the triangle.
lightScl float 8.0 Triangle light properties.
lightOpacityFrom float 0.6 Triangle light properties.
lightOpacityTo float 0.0 Triangle light properties.
lightColor Color null Color of the light the triangle emits.
widthFrom float 4.0 Controls the initial and final positions of each point on the triangle.
widthTo float 0.0 Controls the initial and final positions of each point on the triangle.
heightFrom float 4.0 Controls the initial and final positions of each point on the triangle.
heightTo float 4.0 Controls the initial and final positions of each point on the triangle.
useRotation boolean true Whether the rotation adds with the parent
spin int 0 Spin in degrees/tick.
offset float 0.0 Rotation offset.