GHI_DoScript

Pilus edited this page Aug 11, 2015 · 2 revisions
Clone this wiki locally

Syntax:

GHI_DoScript(code[,delay])

Arguments:

GHI_ has 1 required argument and 1 optional argument.

code
''string''
This is a string of code to be executed. It is recommended that you place it in double brackets instead of quotes.
delay [optional]
''number''
The delay in seconds you wish to delay the script from executing

Aliases:

  • DoScript()

Example:

local code = [[print("I'm some code")]]

GHI_DoScript(code, 5)

This will execute the code stored in the variable "code" after a 5 second delay.