Blockland Forums > Help
Editing Scripts
Frost_Sabre:
--- Quote from: Flubbman on March 19, 2010, 10:10:08 AM ---Also, how do you increase the distance of the bullet?
--- End quote ---
In the Projectile Datablock...
Lifetime = 4000;
(Four Seconds at Default)
--- Quote from: Flubbman on March 19, 2010, 08:27:50 AM ---Am I supposed to change the UI names of emitters and all that stuff too?
--- End quote ---
Yes, including all of the Datablock names.
Flubbman:
--- Quote from: Frost_Sabre on March 19, 2010, 10:40:37 AM ---In the Projectile Datablock...
Lifetime = 4000;
(Four Seconds at Default)
Yes, including all of the Datablock names.
--- End quote ---
I don't really understand... I don't know what all the Datablock names is.
Frost_Sabre:
--- Quote from: Flubbman on March 19, 2010, 11:04:22 AM ---I don't really understand... I don't know what all the Datablock names is.
--- End quote ---
Ill give you an example, taken from the Weapon_Gun - Server.cs Script.
Red = Datablock Name. (gunShellDebris)
Blue = Datablock Type. (Debris)
Purple = Datablock Declaration.
datablock DebrisData(gunShellDebris)
{
shapeFile = "./gunShell.dts";
lifetime = 2.0;
minSpinSpeed = -400.0;
maxSpinSpeed = 200.0;
elasticity = 0.5;
friction = 0.2;
numBounces = 3;
staticOnMaxBounce = true;
snapOnMaxBounce = false;
fade = true;
gravModifier = 2;
};
I probably explained that bad, but...
Flubbman:
--- Quote from: Frost_Sabre on March 19, 2010, 12:12:24 PM ---I probably explained that bad, but...
--- End quote ---
Yeah... I didn't understand any of that
Blockomanian:
--- Quote from: Flubbman on March 19, 2010, 02:54:12 AM ---Ok, now I've got another problem. Now, when spawning an item, the Bullettime Gun (which I called the edit) appears in the list, but the default gun doesn't. Help please?
--- End quote ---
because you edited that script, so the gun your using IS the default gun