Author Topic: Suction Impulse script needed  (Read 1740 times)

How do you make a Suction Impulse script?

You might actually have to explain what you want. Your definition of a "suction impulse script" may be different to mine.

Thats like asking for a sandwich at a cafe, they don't magically know what filling you want.


You mean like a black hole?

i think he wants negative impulses

Instead of being thrown back, you'll get sucked in if you put a negative value in impulseForce.

Code: [Select]
datablock ExplosionData(rocketExplosion)
{
   //explosionShape = "";
   explosionShape = "./shapes/explosionSphere1.dts";
soundProfile = rocketExplodeSound;

   lifeTimeMS = 150;

   particleEmitter = rocketExplosionEmitter;
   particleDensity = 10;
   particleRadius = 0.2;

   emitter[0] = rocketExplosionRingEmitter;

   faceViewer     = true;
   explosionScale = "1 1 1";

   shakeCamera = true;
   camShakeFreq = "10.0 11.0 10.0";
   camShakeAmp = "3.0 10.0 3.0";
   camShakeDuration = 0.5;
   camShakeRadius = 20.0;

   // Dynamic light
   lightStartRadius = 5;
   lightEndRadius = 20;
   lightStartColor = "1 1 1 1";
   lightEndColor = "0 0 0 0";

   damageRadius = 3;
   radiusDamage = 100;

   impulseRadius = 6;
   impulseForce = 4000;         //Make this a negative value, example: -4000 instead of 4000.
};

I've tried that and it doesn't work.Well it works but you have to jump up to get sucked in.
« Last Edit: February 15, 2008, 10:35:37 AM by Spiderobot »

maybe try an vertical impulse before the horizontal impulse

I'm not a big fan of people saying "help me make xxxxxx" in Coding Help.  Coding Help is for problems with coding.  e.g. "I'm making xxxxxx and I'm stuck on this particular issue."  If you want someone to "help" you make something (make something for you), post in Suggestions or maybe Modification Discussion.


I'm not a big fan of people not giving help due to where or how the help was asked for.

I'm not a big fan of people not giving help due to where or how the help was asked for.

Overruled, rudyman.
« Last Edit: March 12, 2008, 04:24:07 PM by Trader »

Take away the two positions of the objects you want to suck, Normalize it and scale it. I think that's how I done my "sucking", I accidentally deleted my Blockland so I can't see what I did.

Take away the two positions of the objects you want to suck, Normalize it and scale it. I think that's how I done my "sucking", I accidentally deleted my Blockland so I can't see what I did.

And accidentally emptied your recycle bin? Sounds like you deleted it in a strop :(

No, I do not have a recycle bin, it disappeared, if you'd like to look in off-topic you'd see my post about it.