jeudi 27 mars 2014

How to insert a time delay mid script topic




Hello all,
I am loving the assistance of this community. Im a coder of HTML PHP and some other stuff, and am trying to get into this. Thanks for all the help thus far.

Today, I'm trying to learn what I can about timers/clocks.

Is there a way to insert a timed delay mid-script?

eg:


Code:


if managers.hud then
  managers.hud:show_hint( { text = "Wait for it..." } )
end

-- CODE TO DELAY BY n TIME --

if managers.hud then
  managers.hud:show_hint( { text = "Boom!!" } )
end



-Brian





Aucun commentaire:

Enregistrer un commentaire