I’m messing with Unreal Tournament 4 and trying to figure out how to mod some of their work using blueprints. Currently I’m toying around with adding Razer Hydra support. In order to do that properly I need to see if the player is in thirdperson view or not. I can set the state with the console variable “behindview” but I’m not seeing a way to get the bool value from it in blueprints. Is this possible?
In the latest version you can call GetConsoleVariableIntValue()
or GetConsoleVariableFloatValue()
in blueprint to get console variables. Just be careful not to call this too often since it’s expensive to do cvar lookups every frame, for example. You’ll get warnings in the log if that happens.
I’m still trying to figure out a more direct access approach so it doesn’t have to do a lookup. Probably have to make something custom for that.