Looking at how long ago most things in the forums have been posted I don't expect an answer to this but here it goes.
I want to store and retrieve variables using ue4 blueprints. I have searched for an answer and the most I could come up with is this cloud code.
var weapons = Spark.getPlayer().getScriptData("weapons");
Spark.setScriptData("weapons", weapons);
What I don't understand is how I can use blueprints to set script data to change what weapon the character has. Maybe this is not even possible in gamesparks api. Any help would be greatly appreciated.
1 Comment
C
Chase Wilksch
said
about 4 years ago
Hi,
I use unity, but the general structure should be the same..
To accomplish what you need you would first need an event that takes in a weapon short code, that event would grab the data input and change the players weapon from there.
In unreal you would send a log event request with the attribute set containing the short code of the weapon you wish to change to.
Ryan Deacon
Looking at how long ago most things in the forums have been posted I don't expect an answer to this but here it goes.
I want to store and retrieve variables using ue4 blueprints. I have searched for an answer and the most I could come up with is this cloud code.
var weapons = Spark.getPlayer().getScriptData("weapons");
Spark.setScriptData("weapons", weapons);
What I don't understand is how I can use blueprints to set script data to change what weapon the character has. Maybe this is not even possible in gamesparks api. Any help would be greatly appreciated.