-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop Item #148
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drop Item Feature
1. Item Pickup Blueprint/Class
Attributes:
FInventoryItemOptionalData
:SpawnClassOnDrop
: Represents the 3D model or actor of the item in the game world.Functionality:
VerifyInventoryInterface
:SpawnClassOnDrop
either directly implements the InventoryInterface or contains a component that implements it.InstantiatePickup
:SpawnClassOnDrop
in the game world.2. Drop Item Functionality
Attributes:
DropAmount
: (for stackable items) Defines how much of the item the player wishes to drop.Functionality:
CanDropItem
:HandleDropAction
:SpawnClassOnDrop
in the world.DropAmount
.UpdateInventoryUI
:3. Networking Considerations
HandleDropAction
is replicated to all relevant players.4. Integration with Current System
Functionality:
UpdateFlagsAndTags
:MoveOrRemoveItem
:MoveItemBetweenInventories
orRemoveItemFromInventory
should be invoked.5. Equipment Check
Attributes:
DropEquippedItemSetting
: This setting lets developers decide how to handle the dropping of equipped items. The options could be:AutoUnequip
: The item is automatically unequipped before being dropped.WarnAndConfirm
: The system prompts the player with a warning that they're about to drop an equipped item and seeks confirmation.Disallow
: The system doesn't allow dropping of equipped items.Functionality:
CheckIfEquipped
:HandleEquippedItemDrop
:DropEquippedItemSetting
, this function will decide how to handle the item drop action for equipped items.The text was updated successfully, but these errors were encountered: