Verse Library verse

02 Scene Graph Updates And Fixes

Retrieves the first inventory component attached to a given agent's descendants.

extracted-snippets/documentation/en-us/fortnite/38-00-fortnite-ecosystem-updates-and-release-notes/02-scene-graph-updates-and-fixes.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/38-00-fortnite-ecosystem-updates-and-release-notes
# Local doc:  epic-docs/documentation/en-us/fortnite/38-00-fortnite-ecosystem-updates-and-release-notes.md
# Section:    Scene Graph Updates and Fixes
GetAgentInventory(Agent:agent)<decides><transacts>:inventory_component
Inventory := (for (I :
Agent.FindDescendantComponents(inventory_component)) { I })[0]

Comments

    Sign in to vote, comment, or suggest an edit. Sign in