PURPOSE: Transmit an array across a network.
SYNTAX: arrayname:String call fPublicArray
RETURNS: nothing.
DESCRIPTION: CoC_PublicArrays contains the list of arrays that can be transmitted via fPublicArray. For fPublicArray to work, CoC_PublicArrays must be initialized at mission start, and must be synchronized on all clients. It is recommended that CoC_PublicArrays be defined in the init.sqs. If CoC_PublicArrays is not defined at mission start, the fPublicArray feature will be disabled.
arrayname:String
name of array predefined in CoC_PublicArrays; elements of array may be undefined, arrays, or values of any time allowed by the PublicVariable instruction.
The fPublicArray function will allow for the sharing of arrays to all network nodes via a single network exchange (as opposed to multiple point to point), the public arrays can be filled with any of the following data types:
EXAMPLES:
in init.sqs:
CoC_PublicArrays = ["Test1", "Test2"]
...
Test1 = [5, true, [player, false], UndefinedValue]
"Test1" call fPublicArray
HISTORY:
Dinger 04/05/2003, rev. by Bn880 06/12/03, 22/08/04
DEPENDENCIES:
CoC_LIBNETWORK, fArrayToVar, PublicArray.sqs