simRemoveModel

Removes a model from the scene. Object destruction always destroys attached scripts before destroying the object itself. If a script destroys the object it is attached to, then the object is first destroyed, and the script destruction is delayed

C++ synopsis

int simRemoveModel(int objectHandle)

Arguments

  • objectHandle: handle of the model (i.e. object tagged as model) to remove.

Return

  • -1 if operation was not successful, otherwise the number of removed objects (a model might contain several objects)


See also: