UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: sgray97 on May 08, 2014, 12:36:25 am

Title: how to add earthquake
Post by: sgray97 on May 08, 2014, 12:36:25 am
i need some help to figure out this error at "earthquake( 200, 7, getstruct("ground_zero", "targetname").origin, 850 );"




Code Snippet
Plaintext
grenade()
{
gren_trigger = GetEnt( "destroy_trigger", "targetname" );
wall = GetEnt( "wall_crumble", "targetname" );

gren_trigger waittill ("trigger")

Earthquake( 200, 7, getstruct("ground_zero", "targetname").origin, 850 );

wall Delete();

}
Title: Re: how to add earthquake
Post by: jjbradman on May 08, 2014, 02:04:37 am
Code Snippet
Plaintext
ent = getstruct("ground_zero", "targetname").
Earthquake( 1, 7, ent.origin, 850 );
also magnitudu cant be so high man