
; Construction Yard

	
	_dir = (getDir camtarget)
	base setDir _dir
	


; Create flag	

	_flag = "FlagCarrier" camCreate [0,0,0]
	_a = 5
	_b = -7.5
	
	_flagX = (getpos base select 0) + _b * sin(_dir) + _a * cos(_dir)
	_flagY = (getpos base select 1) + _b * cos(_dir) - _a * sin(_dir)
	_flag setPos [_flagX, _flagY, 0]
	_flag setFlagTexture ("img\flag_" + MYSIDE + ".jpg")
	

	

	
	
; Ventilation place & animate

	_x = (getpos base select 0) + 7.1 * sin(_dir) + -5.2 * cos(_dir)
	_y = (getpos base select 1) + 7.1 * cos(_dir) - -5.2 * sin(_dir)
	_z = 2.6
	
	ventobj setDir _dir
	ventobj setPos [_x,_y,_z]

	
	_i = 1
	_interval = 0.06
	#loop
	if (CRANEANIM) then {_interval=0.01} else {_interval=0.07}
	~_interval
	_texture = "\dune\yard\vent" + format["%1",_i] + ".paa"
	ventobj setObjectTexture [0, _texture]
	
	? _i < 9 : _i=_i+1; goto "loop"
	_i = 1
	goto "loop"