.. IsObjectOnControl

.. default - domain::js

.. include:: /includes/standard.rst

===========================
IsObjectOnControl (Main.sc)
===========================

.. function:: IsObjectOnControl(theActor ctlColor)

	
	Tests if the origin of an object is on the control color.
	
	:param heapPtr theActor: An :class:`Actor` object.
	:param number ctlColor: A control color (such as ctlLIME or ctlWHITE).
	:returns: TRUE if the object is on the control color, FALSE otherwise.


