Regular API function

simIsObjectInSelection / sim.isObjectInSelection

Description Checks whether an object is selected. See also sim.getObjectSelection, sim.removeObjectFromSelection and sim.addObjectToSelection.
C synopsis simInt simIsObjectInSelection(simInt objectHandle)
C parameters
objectHandle: handle of the object
C return value
3 if object is the last selection,1 if object is in selection, 0 if not, -1 if operation was not successful
Lua synopsis int selectionState=sim.isObjectInSelection(int objectHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart