All pastes #820139 Raw Edit

Untitled

public lua v1 · immutable
·published 2007-12-17 10:57 UTC
rendered paste body
	function sceneNode:getNode(name)		local object = nil		local found = false		table.foreach(self.children,			function(index, item)				if found == false then					if item.name == name then						object = item						found = true					else						local temp = item:getNode(name)						if temp ~= nil then							object = temp							found = true						end					end				end			end)		return object	end