RESOURCE: CoC_NSFunTable:Array
PURPOSE: The CoC_NSFunTable is an array of string function names which acts as a lookup table for the fNSend* functions. Must be completely identical on all network nodes!
FUNCTION: By default CoC_NSFunTable will be empty. It can be defined at any time with pre-processed destination function names, however they must be identical everywhere at all times. Functions by the name "fNPing","fNPingr","fNCS","fNUP","fNPrint","fNBlank","fNClearQ","fNCall" are reserved for internal NS operation and should not be added to CoC_NSFunTable or pre-processed in the mission.
By using the CoC_NSFunTable lookup table when fNSend* is used, the function name will be converted to an integer index automatically, such as "txFunc1" is converted to 0 if it is in the first position of CoC_NSFunTable.
To place functions (names) to the CoC_NSFunTable:
CoC_NSFunTable = ["txMyArrayFunc","txMyrearmFunc",....]
after or before @CoC_ClientsReady, but before you use the NS destination functions they must be in the same order and place on every network node.
"txMyArrayFunc" and "txMyrearmFunc" are your own pre-Processed function names, loaded like this for example:
txMyArrayFunc = preProcessFile "somefolder\myNSarrayfunction.sqf";
txMyrearmFunc = loadFile "somefolder\myNSrearmingFunction.sqf";
txMyCustomFunc = {_x=_y+_z;_x};
EXAMPLE:
myTxFunc1 = preProcessFile "somefolder\myNSarrayfunction.sqf";
myTxFunc2 = loadFile "somefolder\myNSrearmingFunction.sqf";
CoC_NSFunTable=["myTxFunc1","myTxFunc2"]
@CoC_ClientsReady
HISTORY: CoC bn880 14/11/2003, revised 07/05/2004
DEPENDENCIES: CoC_LIBNUMSYS, CoC_LIBNETWORK