Gamethread.delayed

From EventScripts Community Encyclopedia



Method: delayed

Module: gamethread
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Syntax

{{{syntax}}}

Arguments

  • seconds
    • Seconds to wait until calling cmd. Usually a float.
  • cmd
    • Command to call after seconds.
  • args=()
    • Optional. Arguments to send to cmd (as tuple).


Description

Calls the Python cmd function after seconds seconds.

Examples

def myfunc(arg1, arg2):
     print 'Arg1 = %s, Arg2 = %s' % (arg1, arg2)
 
gamethread.delayed(0.1, myfunc, ('Hello', 'Test'))

Notes


See Also

blog comments powered by Disqus