Scripting/Server/Functions/CallClientFunc

Runs a global function in that player's client script. See chapter 2.5 for the allowed argument types.

Syntax

CallClientFunc(player, "Script.nut", "func" [, args...])

Arguments

Returns

bool (true if the call was sent)

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "callclientfunc" )
	{
		local result = CallClientFunc( player, 0, 0 );
		MessagePlayer( "CallClientFunc returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Constructors for helper objects

Categories: Server functions | Constructors for helper objects