|Custom Stuff 1
Information presented below this line is outdated syntax or information used for Custom Stuff 1. It will not work with Custom Stuff 2.
This is how you can make a thrown bomb in customstuff. First, the basics:
name="example bomb"; id=230; type="grenade"; iconfile="customstuff.png"; iconindex=0;
You can change name, id, texturefile and textureindex to what you are using. This is just an example.
Now for the "bomb" part:
grenadetime=50; //measured in ticks so 50/20=2.5 seconds delay grenadethrowforce=1.0; //how hard you throw the grenade (default value used) explode="world.createExplosion(origin,3);"; bounce="0.5";
The grenadetime attribute is an amount of delay between when the grenade is thrown to when the explode event occurs. The measurement for grenadetime is a tick and there are normally 20 ticks per second. The grenadethrowforce attribute will determine how hard you throw the grenade. The higher this is, the farther it is thrown. It is a good idea to set grenadethrowforce to a higher value if you plan to use a powerful explosion. This will create an explosion of strength 3 at the place you threw the bomb. You can change the 3 to something else if you want a more or less powerful bomb. The bounce isn't necessary, but if you do not use it it will be set to the default bounciness.
You could also create a lightning bomb like so:
Replace the other explode trigger with this to make it a lightning bomb.
Now, go and destroy your world with custom bombs!