Download

Not passing through Struct values

Hey all,

I’ve been struggling with this for a little while and would really appreciate some help.

I’ve a bunch of AI actors, that when they are spawned are assigned a bed and a chair. This is all added to a struct for that specific AI. Now i know it does this fine as i’m able use debugger to track that its been assigned.

However when i then go to my Ai controller, and do something as simple as just print that value it tells me it dosent have one in it. I’m at a loss as to how it can be assigned a bed/chair in the construction script, and tell me its there, but then as soon as i get to needing to use it, its forgotten about it

(And yes, i know i shouldnt be casting, i’m just trying to get things working first before i spend time figuring out better ways to optimise things.)