function init ()

	-- Initialise a few parameters.
	-- Variables default to global unless otherwise specified
	-- So we can create and initialise our variables at the same time
	-- In LUA, variables do not have an explicit type either

	-- Statuses
	cFLYING = 1
	cLOOKING = 2
	cTURNING = 3
	status = cFLYING
	
	-- The Thinking distance; the point at which we start considering a new direction
	-- We have also defined the distance considered to be a viable option.
	-- When the character needs to make a decision, it will use this value to decide
	-- whether turning in this direction gives it a long enough path to be viable.
	thinkDistance = 70
	validDistance = thinkDistance * 2
	
	-- Travelling speed; the normal speed of the character
	speed = 1.0
	
end