fNRemoteCall

 

PURPOSE: Execute a command string remotely.
 
SYNTAX: [destination(s):Array, command:String] call fNRemoteCall
 
RETURNSNothing

 
DESCRIPTION:  This function will execute the passed in command string on specific or all remote network nodes. 
It works similarly to fNSendGlobal that it does only one network transaction per call (no matter how many destinations), however it simply executes the passed in command string remotely (entire command must be 4000 chars or less). The following data types can be embedded and transmitted in fNRemoteCall:

destination(s):Array
array with list of destination network node indexes from the CoC_ClientList or CoC_PeerList array
, index 0 of both arrays always refers to the server node, leave an empty array ([]) for all nodes to execute the command.

command:String
command to be called remotely, see description for data types

EXAMPLES:
(setdamage 1 on 4 specific clients)
[[3,4,7],"player setdammage 1"]call fNRemoteCall

(make each player say it's local daytime locally)                                           

[[],"player sidechat format[{%1},daytime]"] call fNRemoteCall

 

HISTORY: CoC bn880,Spinor 07/05/2004

DEPENDENCIES: CoC_LIBNUMSYS, CoC_LIBNETWORK