simRemoveObjects

Removes one or several objects from the scene. Object destruction always destroys attached scripts before destroying the object itself. If a script triggers the destruction of the object it is attached to, then the object is first destroyed, and the script destruction is delayed

C++ synopsis

int simRemoveObjects(const int* objectHandles, int count)

Arguments

  • objectHandles: handles of the objects to remove
  • count: number of objects to remove

Return

  • -1 if operation was not successful


See also: