GetComponentByID

Called to retrieve a component object.

Function

object GetComponentByID(id: string);

Parameters

Name Type Description
id String The id assigned to the component, this value is assigned internally and is not configurable. It is intended for use in retrieving components when only the id is known. The id is usually an integer 64 but the function is using a string as parameter.

Return Value

Returns the requested component as a javascript object or null if the component is not found.

Example

var myChute = GetComponentByID("3355751780515315775");
LogDebug("My Chute name is " + myChute.Name);