//Chicken Egg Script

// This script is hereby released under GPL v. 2 or later by Wolfe Games, 2008
// All contents were created by Wolfe Games.

#ifndef GENERIC_CAR_INCLUDES_H_
#define GENERIC_CAR_INCLUDES_H_

// This Include is absolutely VITAL.  
// You must call it FIRST.  PERIOD.
// Don't say I didn't warn you ;-)
#include "STANDARD_COMMANDS_WORLDBUILDER.h"

piece  base, inner, egg, splat;

Create()
{
	var RandomTurn, RandomPitch;
	RandomTurn = rand(0,359);
	turn base to y-axis <1>*RandomTurn now;	
	RandomPitch = rand(1,10);
	turn base to x-axis <1>*RandomPitch now;

	move base to y-axis [-100] now;
	
////////////////////////////////////////////////////START BUILD CYCLE
	while( get BUILD_PERCENT_LEFT )
	{
		//get PRINT(get BUILD_PERCENT_LEFT)
		move base to y-axis [0] speed [100]/ get BUILD_PERCENT_LEFT;
		sleep 30;
	}
////////////////////////////////////////////////////STOP BUILD CYCLE
}

Killed(severity, corpsetype)
{
	emit-sfx 1024 from splat;
	explode egg type SHATTER;
	explode inner type SHATTER;
}


#endif // if GENERIC_CAR_INCLUDES_H_