I’m trying to set a boolean variable to trigger my spawner to… spawn. But I get an error when I try to cast to the spawner blueprint. I’m new to unreal and I don’t know what to put in the object pin to get this to work. Any help is great, Thanks.
you need to plug a reference to the actor your trying to affect into the object. so in your case you need an instance of the bp_itemspawner. theres many ways to get a reference including traces, overlaps, public variables, and blueprint communication.
also your cast will never actually get fired anyway since you are destroying the actor containing this script prior to the cast node.