# Split2Components

Objects
Existence
5.1 OC
bool
Splits an object into its components. The new component objects will be created with random rotation and a low speed in random direction at the position at which the object was located. The original object is removed. If the original object was contained, the new component objects will be created in the original container.
See notice for RemoveObject.
protected func ControlUse() { var target=FindObject(Find_AtPoint(0,0),Find_Exclude(this)); if (!target) return false; target->Split2Components(); return true; }
Script for a tool: It splits the first object it finds at it's position on usage.
RemoveObject
GetComponent
Sven2
2002-08