Regular API function

simGetObjectLastSelection

Description Returns the handle of the last selected object. See also simGetObjectSelection and simGetObjectSelectionSize.
C synopsis simInt simGetObjectLastSelection()
C parameters
None
C return value
last selected object handle or -1 if selection is empty or operation was not successful
Lua synopsis number objectHandle=simGetObjectLastSelection()
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page