Wad'a'Holic
September 26th, 2005, 05:11 PM
Hey guys!
Screwing around with Fraggle-script one day and I made this. Hope it helps, one of the most effective ways to create an earthquake effect cos it shakes the object not the camera.
// Scripted Interaction : Object earthquake
int objectEarthquakeAmount;
script 71
{
while(objectEarthquakeAmount>0)
{
objmomx(trigger, 5);wait(5);
objmomx(trigger, -5);wait(5);
objmomy(trigger, 5);wait(5);
objmomy(trigger, -5);wait(5);
objmomz(trigger, 5);wait(5);
objmomz(trigger, -5);wait(5);
objectEarthquakeAmount--;
wait(1);
}
}
Add that to your script. Then when you want the earthquake effect to start, put this in...
objectEarthquakeAmount=5;
startscript(71);
NOTE: This script shakes the 'trigger' object, example, if a zombie walks over a line that activates the earthquake, he will shake and not the player. Please keep this in mind.
ALSO to keep in mind, you can change the objectEarthquakeAmount=5; to another number to change the earthquake shake time.
Hope to hear your comments and feedback on the effect. Free to use without credit :D
-Wad'a'Holic
Screwing around with Fraggle-script one day and I made this. Hope it helps, one of the most effective ways to create an earthquake effect cos it shakes the object not the camera.
// Scripted Interaction : Object earthquake
int objectEarthquakeAmount;
script 71
{
while(objectEarthquakeAmount>0)
{
objmomx(trigger, 5);wait(5);
objmomx(trigger, -5);wait(5);
objmomy(trigger, 5);wait(5);
objmomy(trigger, -5);wait(5);
objmomz(trigger, 5);wait(5);
objmomz(trigger, -5);wait(5);
objectEarthquakeAmount--;
wait(1);
}
}
Add that to your script. Then when you want the earthquake effect to start, put this in...
objectEarthquakeAmount=5;
startscript(71);
NOTE: This script shakes the 'trigger' object, example, if a zombie walks over a line that activates the earthquake, he will shake and not the player. Please keep this in mind.
ALSO to keep in mind, you can change the objectEarthquakeAmount=5; to another number to change the earthquake shake time.
Hope to hear your comments and feedback on the effect. Free to use without credit :D
-Wad'a'Holic