~0.1
? localize "STR_USRACT_CHEAT_1" != "FWATCH" : hint "Cannot detect Fwatch"; exit
_version = call loadFile ":info version"
? _version < 1.13 : hint "Requires Fwatch v1.13\n\nPlease update\n\nhttp://ofp-faguss.com/fwatch/download"; exit

	; Variables

SIDEBAR = true
PLACING = false
CREDITS = 1000
BUILDINGS = ["Windtrap","none","none","none"]
UNITS = ["none","none","none","none"]
STATUS = [0,0,0,0,0,0,0,0]
BUILT = [base]
TRAINED = []
ENEMIES = []
COMMANDS = []
WAYPOINTS = []
COMMANDS2 = []
MYSIDE = "Atreides"
SELECTED = camtarget
MESSAGE = ""
BORDERUP = 0
BORDERDOWN = 1
BORDERLEFT = 0
BORDERRIGHT = 1
CRANEANIM = false

MYSIDEVAR = East
? MYSIDE == "Atreides" : MYSIDEVAR = West






	; Functions

call loadFile "functions\setProperties.sqf"
findProperty = loadFile "functions\findProperty.sqf"
quicksort2 = loadFile "functions\quicksort2.sqf"
distZ = loadFile "functions\distZ.sqf"
findID = loadFile "functions\findID.sqf"






	; Scripts

[] exec "Mouse.sqs"
[] exec "Camera.sqs"
[] exec "Dialog.sqs"
[] exec "Time.sqs"
[] exec "Credits.sqs"
[] exec "onMouseOver.sqs"
[] exec "Message.sqs"

[] exec "Unit\Select.sqs"
[] exec "Unit\Mark.sqs"

[] exec "Enemy\Wave.sqs"
[] exec "Enemy\Approaching.sqs"

[] exec "BaseUnder.sqs"
[] exec "Building\Yard.sqs"



~0.1
[] exec "Sidebar.sqs"
playMusic "DuneAmbient"