Is there a dummy Photon Player?
Options
Hello,
I've written up a multiplayer game, however there is also an AI mode.
Important parts of my code make use of the CustomProperties object on the PhotonPlayer. It would be very handy if I could treat the AI as a PhotonPlayer so I didn't have to re-write a lot of code.
Is there anyway I can have make dummy PhotonPlayer for my AI to function under? This would help me significantly...
Thanks in advance for any responses!
I've written up a multiplayer game, however there is also an AI mode.
Important parts of my code make use of the CustomProperties object on the PhotonPlayer. It would be very handy if I could treat the AI as a PhotonPlayer so I didn't have to re-write a lot of code.
Is there anyway I can have make dummy PhotonPlayer for my AI to function under? This would help me significantly...
Thanks in advance for any responses!
0
Comments
-
Or is this plain ridiculous0
-
+1 on this!
I'd like minimal code changes for AI players versus real players, it helps keep edge cases from breaking things,
I'm adding AI players to my game now and it's looking like I'm going to have to re-write lots of code due to a reliance on PhotonPlayers and properties
It would be great to be able to have a single client own more than 1 PhotonPlayer, the first being created automatically (current behaviour) and the others then added manually.
Would love to know if there are plans for this or if I just need to bite the bullet and re-invent the wheel...
Quite a few people have asked about this over the years:
https://forum.photonengine.com/discussion/8488/manually-add-new-photonplayer
https://forum.photonengine.com/discussion/comment/10008#Comment_10008
https://forum.photonengine.com/discussion/comment/31150#Comment_31150
Thanks!0