// player
PLAYER_PED p1 = ( 123.5 , 120.5 , 2.0 ) 25 270 

// parked cars
CAR_DATA car01 = ( 3.5 , 70.5 , 2.0 ) -1 45 VTYPE
CAR_DATA car02 = ( 3.5 , 70.5 , 2.0 ) -1 45 VTYPE
CAR_DATA car03 = ( 3.5 , 70.5 , 2.0 ) -1 45 VTYPE
CAR_DATA car04 = ( 3.5 , 70.5 , 2.0 ) -1 45 VTYPE

// conveyor belts (set animation in map editor!)
CONVEYOR crane2IN = ( 122.5 , 115.5 ) ( 8.0 , 1.0 ) 1 0
CONVEYOR crane2OUT = ( 126.5 , 119.5 ) ( 1.0 , 6.0 ) 0 1

// anything that enters this area is destroyed, cars, peds or even the player
DESTRUCTOR crusher_in = ( 124.9 , 115.5 , 3.0 )  ( 0.6 , 1.0 )
DESTRUCTOR crusher_out = ( 126.5 , 121.9 , 3.0 )  ( 1.0 , 0.6 )

// crushes the car into a small block
CRUSHER crusher1 = ( 119.5 , 120.5 )

// setup cranes. first (FIRST) crane picks up car and drops on crusher, second (SECOND) crane picks up crushed car and places it on conveyor
CRANE_DATA crane1 = ( 117.5 , 122.5 ) 200 NO_HOMECRANE FIRST ( 119.5 , 120.5 ) 180
CRANE_DATA crane2 = ( 121.5 , 118.5 ) 180 crane1 SECOND ( 121.5 , 115.5 ) 270

// reward for crushing car
GENERATOR generator_crusher_crane_powerup = ( 126.5 , 117.5 , 3.0 ) 0 bin 80 80

// declare what cars are accepted on crane and crusher (full list of car names and code on website)
DECLARE_POWERUP_CARLIST ( spider , graham , xk120 , alfa , fiat , buick , buick , dart , vtype , morris 
, monster , jeffrey , copcar , jeep , stypecab , wbtwin , stingray , edselfbi , stype )

// declare bonus for crane/crusher. needs the name of the SECOND crane, the generator and its X, Y and Z co-ords (no need for float values, and same position as the generator)
DECLARE_CRANE_POWERUP ( crane2 , generator_crusher_crane_powerup , 126 , 117 , 3 )

COUNTER neverends = 1

LEVELSTART

// switch generators to ON
SWITCH_GENERATOR ( generator_crusher_crane_powerup , ON )

WHILE_EXEC ( neverends = 1 )

   DO_NOWT

ENDWHILE

LEVELEND