simAssociateScriptWithObject

Sets the associated object of a child script. Use with care when simulation is running

C++ synopsis

int simAssociateScriptWithObject(int scriptHandle, int objectHandle)

Arguments

  • scriptHandle: handle of the child script
  • objectHandle: handle of the associated object, or -1 to remove the association

Return

  • -1 if operation was not successful


See also: