Hey guys,
I'm having an issue passing variables from my PlayerController to my Scaleform Dynamic Text Field.
So far I have a kismet node passing a string variable to my PlayerController, and by logging it I can find that the variable works.
What I am finding difficult is referencing my PlayerController in my GFxHUD which extends GFxMoviePlayer script.
So far I have tried:
And then trying to set the text field to the variable GameObjective.
I end up with an error:
Bad or missing Expression for token: HWPlayerController, in '='
If anyone could help me out, I can't seem to get this to run.
All I need to do is pass a string variable to my Scaleform HUD.
- Sythen
PS: The game is singleplayer, does not require ReplicationInfo - hence the PlayerController pass.
I'm having an issue passing variables from my PlayerController to my Scaleform Dynamic Text Field.
So far I have a kismet node passing a string variable to my PlayerController, and by logging it I can find that the variable works.
What I am finding difficult is referencing my PlayerController in my GFxHUD which extends GFxMoviePlayer script.
So far I have tried:
Code:
local HWPlayerController PC; PC = HWPlayerController(GetWorldInfo().GetALocalPlayerController());
Code:
ObjectiveTF.SetString("text", (PC.GameObjective));
Bad or missing Expression for token: HWPlayerController, in '='
If anyone could help me out, I can't seem to get this to run.
All I need to do is pass a string variable to my Scaleform HUD.
- Sythen
PS: The game is singleplayer, does not require ReplicationInfo - hence the PlayerController pass.
Comment