simSetScriptStringParam

Sets a string parameter of a script

C++ synopsis

int simSetScriptStringParam(int scriptHandle, int parameterID, char* parameter, int parameterLength)

Arguments

  • scriptHandle: handle of the script
  • parameterID: identifier of the parameter to set. See the list of all possible script parameters
  • parameter: parameter value (can contain embedded zeros)
  • parameterLength: length of the parameter value

Return

  • -1 in case of an error, 0 if the parameter could not be set, or 1 if operation was successful


See also: