# Split2Components

Objects
Existence
4.6.5.0 CP
bool
object obj Object to be split. Can be 0 in local calls.
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 ControlDigDouble() { var target=Contents(); if (!target) return(); Split2Components(target); return true; }
Script for a clonk: He splits the first object he carries on double dig.
RemoveObject
GetComponent
Sven2
2002-08