All pastes #233371 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-11-01 22:26 UTC
rendered paste body
#Global Hooks

$HUD:
[

	shipInFocus = mn.Ships['GTC Orff']
	numfocusSubsys = #shipInFocus
	numShips = #mn.Ships

	
	for i=1, numfocusSubsys do
		thisSubsys = shipInFocus[i]
		
		subsysName = thisSubsys:getName()
		subsysTargetPos = thisSubsys.Target.Position
		
		for j=1, numShips do
			targetShip = mn.Ships[j]
			if subSysTargetPos == targetShip.Position then
				realTarget = targetShip.Name
			else
				realTarget = nil
			end
		end	
		
			
		gr.drawString(subsysName,100,25*i)
		
		if realTarget == nil then
			gr.drawString("None",110,(25*i)+10)
		else
			gr.drawString(realTarget,110,(25*i)+10)
		end
	end

]

#End