All pastes #413717 Raw Edit

Unnamed

public text v1 · immutable
#413717 ·published 2007-03-28 17:17 UTC
rendered paste body
thomas_miller_AI = Mango.AIScripts.Create(thomas_miller_AI');

function thomas_miller_AI.Init(LuaAI)
	
        thomas_miller_AI.DoShout(LuaAI)
	LuaAI:SetUpdateInterval(8)

	return true
end

function thomas_miller_AI.DoShout(LuaAI)

       local text = { "MOEP" , "Lecki" , "Lutschi" , "BOEP" };
         local i = 1
         while text[i] then i = i + 1 end
              i = rand_range(1,i)
              LuaAI:DoSay(text[i], 0)
         end
         function thomas_miller_AI.Init(LuaAI)
         LuaAI:SetUpdateInterval(8)
         return true
end

function thomas_miller_AI.Update(LuaAI)
	
	thomas_miller_AI.DoShout(LuaAI)
end