Code: Select all
// Call a function by name and string parameters.
// Parms are separated by '\' character, diferent parms can also be enclosed by citate char, as ex:
// ExecFunctionStr('TestCode',"45\\\"Hello world\");
// Which will compile as: 45\"Hello world"
// Returns True if function was found and executed.
// @ ReturnValue = filled with the return value if exists.
native(390) final function bool ExecFunctionStr( name FuncName, string Parms, optional out string ReturnVal );
Code: Select all
// The Data Actor.
Function HandleData(name Action, string PActorName, string PPlayerName)
{
log(PActorName @PPlayerName);
}
// The Calling Actor.
Data.ExecFunctionStr('HandleData',"Load//" $string(PlayerActor.Name) $"//" $PlayerName);