Garry's Mod Wiki

table.Copy

table table.Copy( table originalTable )

Description

Creates a deep copy and returns that copy.

This function does NOT copy userdata, such as Vectors and Angles!

Arguments

1 table originalTable
The table to be copied.

Returns

1 table
A deep copy of the original table

Example

Creates a deep copy of table A

B = table.Copy(A)

Page Links


Special Pages


Wikis

?

Render Time: 24ms

Session 0
DB GetPage 3
Generate Html 5
SaveChanges 8
Render Body 0
Render Sidebar 5