Author Topic: How do I create a new Projectile?  (Read 2158 times)

I was wondering how to do this. Can someone post me a link to a tutorial or something?

Look at the projectiles in the Default ones. Get an idea for scripts there.

Look at the projectiles in the Default ones. Get an idea for scripts there.
also like he said, but you can also make a bullet model, Export it in DTS, put it in the zip file, and address it to that in the cs file. like if there's a "Sbullet"(in this case the master rifle) in the cs you would fine this part and change to something like this:
Code: [Select]
AddDamageType("Masterrifle",   '<bitmap:add-ons/Weapon_Masterrifle/CI_Masterrifle> %1',    '%2 <bitmap:add-ons/Weapon_Masterrifle/CI_Masterrifle> %1',0.5,1);
datablock ProjectileData(MasterrifleProjectile)
{
   projectileShapeName = "./Sbullet.dts";
« Last Edit: November 08, 2008, 02:01:09 PM by g12345389 »

Code: [Select]
%p = new Projectile()
{
dataBlock =
initialVelocity =
initialPosition =
sourceObject =
sourceSlot =
client =
};
MissionCleanup.add(%p);
Make sure to define the variables inside the brackets. I can't because I don't know what you need it for, and where your using it.

How would I make one that is invisible?

set its shape to empty.dts assuming you have the right directory.

« Last Edit: November 12, 2008, 03:57:10 PM by g12345389 »