Announcement

Collapse
No announcement yet.

Structure that collects nearby dropped items (feces and eggs)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Structure that collects nearby dropped items (feces and eggs)

    Hi I was wondering how to blueprint code a script to auto collect animal feces (and eggs) that are near a build able structure and deposit it in the inventory.

    So far I have tried using a box with an onOverlapBegin event which doesnt seem to be able to detect dropped items.
    Additionally I havn't found any inventory related blueprint nodes to use within the script, besides the below script which can only RETURN what items are within the structures inventory.

    The way I want the script to work is either:

    A: egg or feces dropped item collides with a box component within my structure blueprint which then adds it to the inventory if its not full.

    or

    B: A periodic (every minute or so) sweep scan (I think that's what its called) or something similar is used to look for dropped items near the structure which then adds it to the inventory if its not full.


    Hers the wip asset:
    Click image for larger version

Name:	wip.jpg
Views:	1
Size:	197.9 KB
ID:	1165007
    Attached Files
Working...
X