Code: Select all
function doHudPrint(text)
hudPrint(text)
end
function showDialogue()
delayedCall(self.go.id, 5.0, "doHudPrint", "Hello Lowly Mortal.");
delayedCall(self.go.id, 10.0, "doHudPrint", "I am going to speak to you using the HudPrint Method.");
delayedCall(self.go.id, 15.0, "doHudPrint", "And these message will appear on the screen.");
delayedCall(self.go.id, 20.0, "doHudPrint", "With 5 second gaps between them. All using one callback function.");
end
showDialogue();