Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
[HELP][QUESTION] Using Tarray for Weapon Inventory
Author Summary
SentryTheDefiant184 is in Question
Post Body

Hello! I've been working on creating a functional Weapon Inventory system. I have a struct and data table constructed, only problem is that the way weapon(s) currently works is that the Gun BP is assigned onto the character BP through Class Defaults.

It is possible to attach other weapons to the established socket, but the position is (as expected) wrong for a smaller or larger weapon and the firing logic as well does not work. Can anyone point me in the right direction as to set this up. (Not really looking for a tutorial, per se, just a few pointers and building blocks on how to create the system)

A Summary of what I want to achieve:

  • Make Weapons available in world for player to pickup
  • Make a TArray reference in Player C files
  • TArray calls and adds to player inventory
  • Player should be able to quickly switch between three class of weapons
  • In addition, player should be able to have a bindable key for grenades

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,631
Link Karma
348
Comment Karma
1,283
Profile updated: 2 days ago
Posts updated: 5 months ago
Dev

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago