<P>			ClientMessage("Goal Updated");
<P>			DeusExRootWindow(rootWindow).hud.msgLog.PlayLogSound(Sound'tnmLogGoalAdded');
<P>		}
<P>	
<P>		return newGoal;
<P>	}
<P>	function GoalCompleted( Name goalName )
<P>	{
<P>		local DeusExGoal goal;
<P>
<P>		// Loop through all the goals until we hit the one we're
<P>		// looking for.
<P>		goal = FindGoal( goalName );
<P>
<P>		if ( goal != None )
<P>		{
<P>			// Only mark a goal as completed once!
<P>			if (!goal.IsCompleted())
<P>			{
<P>				goal.SetCompleted();
<P>				DeusExRootWindow(rootWindow).hud.msgLog.PlayLogSound(Sound'tnmLogGoalCompleted');
<P>		
<P>				// Let the player know
<P>				if ( goal.bPrimaryGoal )
<P>					ClientMessage(PrimaryGoalCompleted);
