Sign In Register

How can we help you today?

Start a new topic

Access Response Object via Cloud Script

Hey there... When in Cloud Script the Authentification Response is triggered, how can i access the "newPlayer" property of the Response Object, to add some Logic in case the player just has newly registered. Is it done via the getplayer().getscriptData? Thanks for your help
1 Comment

Hi Julian,


The following will get that value for you.


var newPlayer = Spark.getData().newPlayer


You should then be able to run use this value to run specific code on new players only.


Regards,

Liam 

Login to post a comment