is it even possible to call blueprint function from bp class without spawning an instance of this class
what exactly are you trying to do? get a function from the pickup base?
yes exactly
Correct me if i’m wrong, but you need to spawn an instance of a class (create an object of a class), because class is only a ‘template’, and until you don’t create an object from it, it will not exist == it will not be able to call a function from it. Additionally, you can create many objects from a single class, and call a function only from particular one. That’s why you need to tell the engine from which object you would like to call it
In your case, you have PickupBase class. I guess it’s a base (yeah i’m true detective) for you ingame pickups. For example, if you create 3 health pickups from it, you need to precise from which one you would like to call your “Mofaka” function ;D And this “Target” input is exactly where you need to provide an object. Of course you can also call a function for ALL existing pickups, using Get All Actors of Class or interfaces.
If your blueprint function doesn’t need an instance/doesn’t work on instance data, it is a static function. You should put it in a Blueprint Function Library instead.
thanks for answers guys :)!