Action AJAX call confusion

Game development with Board Game Arena Studio
Post Reply
User avatar
cmgames
Posts: 16
Joined: 05 October 2016, 22:14

Action AJAX call confusion

Post by cmgames »

How (and where) do I use the arguments passed in the AJAX call on a player action event?

I cannot figure out from the documentation where the AJAX call is actually going. It 'appears' to post to a non-existent .html file, but I know that is just a fiction to get it sent somewhere in server-space.. But where does it actually go?

Specifically, I am trying to pass the click location to a php action script in my xxxx.game.php file.

~cmg
User avatar
apollo1001
Posts: 191
Joined: 21 July 2015, 10:41

Re: Action AJAX call confusion

Post by apollo1001 »

it passes it to yourgamename.action.php which you then set up to call the correct function in yourgamename.game.php.

Here is the doc on action.php: http://en.doc.boardgamearena.com/Player ... action.php
Post Reply

Return to “Developers”