Sign In Register

How can we help you today?

Start a new topic
Answered

Award currency pack from cloud code?

Is it possible to award a player a currency pack from cloud code?


It seems that calling player.addVGood(), and then consuming or using it doesn't trigger the currency award.


Thanks for any help.


Best Answer

Hi Kevin


Virtual Goods that are currency packs can only be brought using a store request,

But you can get the same behavior in cloud code by crediting the player the currency


Spark.getPlayer().credit1(quantity, reason);


Regards

Katie

1 Comment

Answer

Hi Kevin


Virtual Goods that are currency packs can only be brought using a store request,

But you can get the same behavior in cloud code by crediting the player the currency


Spark.getPlayer().credit1(quantity, reason);


Regards

Katie


1 person likes this
Login to post a comment