> For the complete documentation index, see [llms.txt](https://docs.siminsights.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siminsights.com/hyperskill/authoring-a-simulation/state-machine/actions/vcode-function.md).

# VCode Function

A VCode function is a script written in using block programming and attached to a virtual object. This action allows you to play the script.&#x20;

Entity: The virtual object containing the script to run

VCode Function: The function to run. (**Note:** Currently only 1 VCode function can be attached to an virtual object and will be titled **Default VCode Function**).
