> 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-studio-authoring/state-machine-reference/actions/set-attribute.md).

# Set Attribute

Set Attribute sets the value of an attribute on an entity. A detailed explanation of controls and interface functions is described in the section [State Machine Builder User Interface](https://docs.google.com/document/d/1-o5qSv4zTkzj7YSmRTkV4zezFq7lwU00FyTy0kw1l1U/edit#bookmark=id.6vu41emx3478).

1. Within the edit Simulation section of the HyperSkill Desktop application, navigate to the State Machine tab.
2. Click on the desired state and, from the dropdown in either the entry or exit actions, select the type Set Attribute.
3. Press the + button to add the action to the action list.

<figure><img src="https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2FNAl7WcJdpy70Tcx4APyS%2F107.png?alt=media&#x26;token=55ddedd1-5034-44dc-bf98-a180feed9bbd" alt=""><figcaption></figcaption></figure>

4. Select an entity with the ![](https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2FqJ4CgLQqRYowrsmGTUrA%2F108.png?alt=media\&token=e5060456-af2e-4a05-a9a1-d79c4ee70725) dropdown. It is populated with every VO and VP in your space.
5. From your selected entity, select the Attribute from the ![](https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2FVr5cr1llzmgLEYzSrp5R%2F109.png?alt=media\&token=a38d9291-5631-44ea-93d8-4c2bcd56da06) dropdown. It becomes selectable after you select an entity, and lists every Attribute that currently exists on that entity.
6. With an attribute selected, you can enter the Value field. It tries to fill itself out with a suitable value based on the attribute type. For example, Boolean attributes fill in True. The Value is entered as a string regardless of type.
7. For the Snapped attribute, the syntax is \<VO Name>.\<Hitbox Name>, where VO Name is the string given when the object was selected with the selection tool.
