Input Item Component Snippet
1308 Views
-
using { /UnrealEngine.com/Itemization } using { /Fortnite.com/Game } using { /Verse.org/Simulation } using { /Verse.org/SceneGraph } using { /UnrealEngine.com/ControlInput } using { /Fortnite.com/Input/Character } # using { /Verse.org/Input } (Entity:entity).GetRootInventory<public>()<decides><transacts>:inventory_component= Result := for: InventoryComponent : Entity.FindDescendantComponents(inventory_component) do: InventoryComponent Result[0] (Entity:entity).GetRootAgent<public>()<decides><transacts>:agent= if(Agent := agent[Entity]): Agent else: Entity.GetParent[].GetRootAgent[] input_item_component<public> := class<final_super><abstract>(item_component): var InputEventHandle<private>:[]cancelable = array{} var ComponentEventHandle<private>:[]cancelable = array{}
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.