https://forum.photonengine.com/discussion/11457/create-a-raiseevent-so-the-webhoock-pathevent-will-fire
I have been trying to create an trigger in game that will trigger PathEvent.
I tried this:
byte evCode = 0; // my event 0. could be used as "group units"
byte[] content = new byte[] { 1, 2, 5, 10 }; // e.g. selected unity 1,2,5 and 10
bool reliable = true;
PhotonNetwork.RaiseEvent(evCode, content, reliable, null);
No PathEvent is ever called, not sure if it's supported any more?
RaiseEventOptions raiseEventOptions = new RaiseEventOptions();
raiseEventOptions.ForwardToWebhook = true;
byte evCode = 0; // my event 0. could be used as "group units"
byte[] content = new byte[] { 1, 2, 5, 10 }; // e.g. selected unity 1,2,5 and 10
bool reliable = true;
PhotonNetwork.RaiseEvent(evCode, content, reliable, raiseEventOptions);
No comments:
Post a Comment