Skip to content

Identification

$object.identification:description$

Properties

id

Unique object identifier. Each object in Traintastic has a globally unique id that can be used in scripts (see world.get_object).

name

$object.identification.name:description$

Events

on_changed

$object.identification.on_changed:description$

Handler signature

function (value, object, name, user_data)

Arguments

  • value - $object.object.on_changed.parameter.value:description$

  • object - $object.object.on_changed.parameter.object:description$

  • name - $object.object.on_changed.parameter.name:description$

  • user_data - optional user-provided value (see Events).

on_event

$object.identification.on_event:description$

Handler signature

function (type, identifier, direction, category, user_data)

Arguments

  • type - $object.identification.on_event.parameter.type:description$

  • identifier - $object.identification.on_event.parameter.identifier:description$

  • direction - $object.identification.on_event.parameter.direction:description$

  • category - $object.identification.on_event.parameter.category:description$

  • user_data - optional user-provided value (see Events).