inventory question

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

trasko

New Member
Sep 28, 2001
7
0
0
45
the internet
so... is it possible to have more than one instance of a class in your players inventory? like i make a subclass of inventory called "blah" -- can i add multiple instances of blah in a player's inventory? if i can, how do i get access to each one specifically?

right now i've been using "FindInventoryType(<someclass>)" to get a hold of it... but that will only return the first instance it finds.


if this isn't possible, any suggestions on what i should do? i want for each player to have a few instances of this object of mine (3 to be exact) -- i could hardcode all this in my subclass of a player, but that is poor design and i'll probably be changing stuff later and i want everything to be easy to modify.

anyways... thanks for the help


trasko
 

trasko

New Member
Sep 28, 2001
7
0
0
45
the internet
heh

well, this forum naturally take way too long ;-)

i went ahead and hacked it all together which is actually ok cause any expansion i make should be able to fit into the scheme i made. i just wish the inventory stuff managed to work.

the problem i've been having is using the built in US stuff in my code - i end up writing up new code that could have been done more elegantly. i guess there isn't much way around that other than experience with the code....

trasko