Regular API function

simMoveStackItemToTop

Description Moves a stack into to the top of the stack. See also simPopStackItem and the other stack functions.
C/C++
synopsis
simInt simMoveStackItemToTop(simInt stackHandle,simInt cIndex)
C/C++
parameters
stackHandle: a stack handle obtained with simCreateStack.
cIndex: the zero-based index of the item to move.
C/C++
return value
-1 in case of an error.
Lua
synopsis
Lua
parameters
Lua
return values
Python
synopsis