table.Copy

From Garry's Mod
Jump to: navigation, search
 table.Copy( )

Contents

Description

Creates a deep copy and returns that copy.

WARNING

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

Arguments

table originalTable

The table to be copied.

Returns

table

A deep copy of the original table

Examples

Example

Creates a deep copy of table A

B = table.Copy(A)


Personal tools
Navigation