Description
|
Sets the associated object of a child script. Use with care when simulation is running. See also sim.addScript and sim.setScriptText.
|
C/C++ synopsis
|
simInt simAssociateScriptWithObject(simInt scriptHandle,simInt objectHandle)
|
C/C++ parameters |
scriptHandle: handle of the child script
objectHandle: handle of the associated object, or -1 to remove the association
|
C/C++ return value
|
-1 if operation was not successful
|
Lua synopsis
|
sim.associateScriptWithObject(int scriptHandle,int objectHandle) |
Lua parameters |
Similar to the C-function counterpart
|
Lua return values
|
|
Python synopsis |
sim.associateScriptWithObject(int scriptHandle,int objectHandle) |