


Yield (pause) the current Lua thread and let other threads and the game engine to run. This is needed for many table-related operations because SR2 uses Lua 5.0 released back in 2006, which lacks the # operator. Get the number of elements in the specified table. (integer) The number of elements in the specified table Generates a random integer number between min and max. (integer) A random integer number between min and max Generates a random floating point number between min and max. (float) A random floating point number between min and max Internally uses get_frame_time() for time measurement. Pauses the exection of the current thread for the specified amount of time. Local fractional = time_elapsed - floor(time_elapsed) If Powertools is not present, this function does nothing. If two strings are passed to this function they will be concatenated, but it is not recommended because Powertools does not add any separators between them. Push "Scroll Lock" key to enable debug log display. Send a debug log to Saints Row Powertools. Msg2 (string, optional) If present, it is concatenated to the end of msg1 (defaults to "") (float) the largest integer value not greater than argĬomputes the largest integer value not greater than arg. (float) the smallest integer value not less than argĬomputes the smallest integer value not less than arg. = Functions available in any contexts =Ĭomputes the principal value of the arc cosine of arg. This is an incomplete list of (mostly) builtin Lua functions of Saints Row 2.
