How to create a variable to be called in other blueprints from the BP interface
I want a global value for score that can be increased by several different triggers. All of these triggers would need BPs to call and update the Score variable that would have to be the same across all of them. As I understand it you have to use the BP interface to create global variables but I can't seem to find anything that actually explains how to do it.
asked Jul 30 '15 at 07:06 PM in Blueprint Scripting
There no global varables in blueprints, you need to use class that is more global, so either GameMode (if oyu do singlep player only) or PlayerController, then you can access it via normal get functions for used game mode or player controller and cast it to your class. To access variables from other object, you pull link from object pin and drop it to empty space of blueprint, in context menu you will have Varables category and there where all "set" and Get" nodes to all variables of the class of object.
Blueprint interfaces are for relate unrelated classes (make type from common functions of the 2 or more classes), lot of people in UE4 community misunderstood them for means of communication between blueprints
answered Jul 30 '15 at 08:06 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here