question

Mr Slo avatar image
Mr Slo asked

Call Function from Server in behalf of Player

Iim trying to call a function from another service in behalf of a player.

Im using /Server/ExecuteCloudscript

But its not working, tit says function is not found. If I call the function as a player, works fine, function is found.

Is there a way to call functions via cloud script from server anyhow ?

Thanks.

CloudScript
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mr Slo avatar image Mr Slo commented ·

It seems its calling legacy cloud script. Is there a way to call the non legacy ?

0 Likes 0 ·

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

Cloud Script(Legacy) and Cloud Script using Azure Function are services for games which don’t have a dedicated server but want some server-side logic. Then, they can implement Cloud Script(Legacy) or Cloud Script using Azure Function for client side executing. Since you have a dedicated server, you can implement those logic directly in your server and execute them easily.

If you do need to execute the Azure Function from the server on behalf of a player, you can call Server-Side Cloud Script - Execute Function - REST API (PlayFab CloudScript) | Microsoft Learn with a title level entity token and specify the Entity parameter.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.