# ----------------------------------------------------------------------------- #
.headerstart
IsId          	173
Type          	27
Init          	GatewayInit
Death         	GatewayDeath
GndAttkInit   	[NONE]
AirAttkInit   	[NONE]
Unused1       	[NONE]
GndAttkRpt    	[NONE]
AirAttkRpt    	[NONE]
CastSpell     	[NONE]
GndAttkToIdle 	[NONE]
AirAttkToIdle 	[NONE]
Unused2       	[NONE]
Walking       	[NONE]
WalkingToIdle 	[NONE]
SpecialState1 	[NONE]
SpecialState2 	[NONE]
AlmostBuilt   	[NONE]
Built         	GatewayBuilt
Landing       	[NONE]
LiftOff       	[NONE]
IsWorking     	GatewayIsWorking
WorkingToIdle 	GatewayWorkingToIdle
WarpIn        	GatewayWarpIn
Unused3       	[NONE]
StarEditInit  	[NONE]
Disable       	GatewayDisable
Burrow        	[NONE]
UnBurrow      	[NONE]
Enable        	GatewayEnable
.headerend
# ----------------------------------------------------------------------------- #

GatewayInit:
	imgul             	173 0 0
	playfram          	0x00
GatewayBuilt:
	wait              	125
	goto              	GatewayBuilt

GatewayDeath:
	playsnd           	7
	imgol             	215 0 0
	wait              	3
	lowsprul          	223 0 0
	wait              	1
	end

GatewayIsWorking:
	playfram          	0x01
	wait              	2
	playfram          	0x02
	wait              	2
	playfram          	0x03
	wait              	2
	playfram          	0x02
	wait              	2
	playfram          	0x03
	wait              	2
	playfram          	0x02
	wait              	2
	playfram          	0x01
	wait              	2
	playfram          	0x02
	wait              	2
	goto              	GatewayIsWorking

GatewayWorkingToIdle:
	playfram          	0x00
	goto              	GatewayBuilt

GatewayWarpIn:
	imgol             	172 0 0
	goto              	GatewayBuilt

GatewayDisable:
	playfram          	0x04
	wait              	2
	playfram          	0x05
	goto              	GatewayBuilt

GatewayEnable:
	playfram          	0x04
	wait              	2
	playfram          	0x00
	goto              	GatewayBuilt