/ HALion Developer Resource / HALion Script / Reference /

onLoadIntoSlot

onLoadIntoSlot()

Description

This callback function is called when the program is loaded into the Slot Rack. Any global statements are executed in advance. onInit is called after onLoadIntoSlot.

Available in: Controller.

Example

-- Print a message when loading the program into the slot rack.

function onLoadIntoSlot()
   print('"Hello" from the Slot Rack.')
end

See also: onRemoveFromSlot, onInit