Blockland Forums > Modification Help

Multiple Mount Points or Multiple Offsets For One Model? [SOLVED]

Pages: (1/1)

Audax:

Is it possible to mount a model to multiple mount points?

I'm trying to do it with this:

--- Code: ---datablock ShapeBaseImageData(Para2Image)
{
   // Basic Item properties
   shapeFile = "base/data/shapes/empty.dts";
   emap = true;

   // Specify mount point & offset for 3rd person, and eye offset
   // for first person rendering.
   mountPoint = 3;
   offset = "0 0 0";
   eyeOffset = 0;
   rotation = ("0 0 0");

   correctMuzzleVector = true;

   className = "WeaponImage";
   item = BowItem; //This doesn't do anything
   ammo = " ";
   MPused = 0;
   projectile = LightningBolt;
   projectileType = Projectile;

   melee = false;
   armReady = false; //Raise your arm?
  
   lightType = "ConstantLight"; //This has never been done before
   lightColor = "0 1 1 1";
   LightTime = "1000";
   lightRadius = "4";

stateName[0] = "Activate";
stateTimeoutValue[0] = 0.15;
stateTransitionOnTimeout[0] = "Ready";
stateSound[0] = LightningZapSound;

stateName[1] = "Ready";
stateTransitionOnTriggerDown[1] = "Fire";
stateAllowImageChange[1] = true;
stateSequence[1] = "Ready";
stateEmitter[1] = LightningAmbientEmitter;
stateEmitterTime[1] = 600;

stateName[2] = "Fire";
stateTransitionOnTimeout[2] = "Reload";
stateTimeoutValue[2] = 1;
stateFire[2] = true;
stateAllowImageChange[2] = false;
stateScript[2] = "onFire"; //function activated at this point, see below
stateWaitForTimeout[2] = true;
stateSound[2] = LightningFireSound;

stateName[3] = "Reload";
stateSequence[3] = "Reload";
stateTransitionOnTriggerUp[3] = "Ready";
stateTransitionOnTriggerDown[3] = "Fire";
stateSequence[3] = "Ready";
};
--- End code ---

and instead of it mounting to mount point 3, I want it to mount to mount point 0, 1, 3 and 4.

Destiny/Zack0Wack0:

You need to make 4 separate images, changing their mountPoint to 0, 1, 3 and 4. Then mount them all at the same time.

NomAplemNom:

Aww D: stole it for me!

Audax:


--- Quote from: Destiny/Zack0Wack0 on June 20, 2010, 09:58:33 PM ---You need to make 4 separate images, changing their mountPoint to 0, 1, 3 and 4. Then mount them all at the same time.

--- End quote ---

Thanks, I also looked at Akimbo Guns for an example.

Pages: (1/1)

Go to full version