sim.associateScriptWithObject

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

Synopsis

sim.associateScriptWithObject(int scriptHandle, int objectHandle) sim.associateScriptWithObject(int scriptHandle, int objectHandle)

Arguments

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


See also: