Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Chao

Pages: 1 ... 3 4 5 6 7 [8]
106
Modification Help / Re: How to spawn explosion?
« on: March 14, 2009, 12:13:06 PM »
Here's the code that I have now:
Code: [Select]
function TNTImage::onPreFire(%c)
{
%mount = %c.getObjectMount();
%scaleFactor = getWord(%mount.getScale(), 2); //Change %mount to be the user.
%p = new Projectile()
{
 dataBlock = TNTProjectile; //Change this to your projectile datablock
 initialPosition = vectorAdd(%mount.getEyeTransform(),vectorScale(%mount.getEyeVector(),3)); //Change this to the user's muzzle point
 initialVelocity = vectorScale(%mount.getEyeVector(),140); //Change this to the user's muzzle vector so the explosion shows the right way when it explodes
 sourceObject = %mount;  //Change this to the user
 client = %mount.client; //Change this to the user's client
 sourceSlot = 0;       //Keep this
 originPoint = vectorAdd(%mount.getEyeTransform(),vectorScale(%mount.getEyeVector(),3)); //Change it to the same as initialPosition
};
MissionCleanup.add(%p);
%p.setScale(%scaleFactor SPC %scaleFactor SPC %scaleFactor);
%p.explode();
}

Did I implement this correctly?  It's still only show's the light from the explosion D=

107
Modification Help / Re: How to spawn explosion?
« on: March 13, 2009, 06:54:52 PM »
I looked at the tank and that's how I got the code, but it only shows the explosion light D:

108
Modification Help / Re: How to spawn explosion?
« on: March 13, 2009, 06:03:07 PM »
I'm a new scripter, I don't know how to script that well.  Therefor, I need some help sometimes.  I really want to release this weapon.  I tryed to look up how to do it in a Torque Scripting Reference, but it didn't have anything on it.

109
Modification Help / Re: How to spawn explosion?
« on: March 13, 2009, 05:47:42 PM »
This is what I have now:
Code: [Select]
function TNTImage::onPreFire(%p)
{
%p = new Projectile()
            {
               dataBlock = TNTProjectile;
               initialPosition =
            };
%p.explode();
}

What do I put in the initialPosition area if I want it to explode right on the player?

110
Modification Help / Re: How to spawn explosion?
« on: March 13, 2009, 05:30:28 PM »
It didn't work
This is what it looks like:
Code: [Select]
function TNTImage::onPreFire(%p)
{
%p = new Projectile()
            {
               dataBlock = TNTProjectile;
            };
%p.explode();
}

111
Modification Help / Re: How to spawn explosion?
« on: March 13, 2009, 05:10:28 PM »
It's not working
I'm not sure if I did it the right way though:
Code: [Select]
function TNTImage::onPreFire(%p)
{
%p = new Projectile()
            {
               dataBlock = TNTProjectile;
               projectile.explode()
            };
}

112
Modification Help / How to spawn explosion?
« on: March 13, 2009, 04:50:15 PM »
I'm making an item called the TNT and I need to know how to spawn the explosion right when they click.  I tried several things, but none worked...
I really need to know how to do this.  Please help me!

113
Faces, Decals, Prints / New Prints: Food Prints
« on: March 12, 2009, 06:00:47 PM »
Food Prints
Some food prints for 2x2 ramp print bricks.

Description
I got bored, so I made some food prints.  I tested them and they were a success so I thought that you guys might like them.  They are good for restaurants and bars.  Hope you like them!

Screenshots

Download
Print_2x2r_Food.zip (Last Updated: Thu Mar 12, 2009 1:58 pm)

Installation
Put Print_2x2r_Food.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager

Pages: 1 ... 3 4 5 6 7 [8]