How do i call a function from another blueprint

I’ve done a bit of unreal before but I’ve never manged to get my head round calling functions from another blueprint. All i’m trying to do here is make it so when i call the function it will just print something on screen, so i know its working any help would be very must appreciated, thanks.

You need to get a object reference of actor first, casting is only for changing type of object reference. There many ways to get object, for example, spawn node return object reference of spawned object (also do automatic casting), collision events gonna give you object reference of actor that hit another actor, there trace line functions which you can find object in specific line or specific area or simple function Get Game Mode and Get Player Controller and such. There many functions like that, most basic ones is “Get All Actors of Class” which will search all actors in your world of specific class, but this is quite heavy process aspecially if you got a lot of actors and should be avoided (or just run once to get something). So you should find a way for your actor to find the wood thing.

Once you get a object reference, if you want you can keep in variable so you don’t need ot get it anymore

Lost count how many Times I posted this as Answer xD

1 Like

Nice answer with a duration of 2 hours :+1: