Lua:Pairs safe

Lua:Pairs safe

From BeamNG

Revision as of 05:02, 24 January 2015 by Nug700 (talk | contribs) (initial.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

safe table iteration function.

File location: lua\utils.lua:585

Syntax

-- safe table iteration functions: it will iterate the tables via a copy: "adding" to the tables will not change the iteration
obj pairs_safe (table t)