Fusion clients fire gun multiple times instead of once
Hi. Movement, weapons, everything works fine on Host(aka the state authority). But on the client, if you fire a gun it sometimes fires multiple times. I get that it's because "fixedupdatenetwork" uses prediction so it makes the client fire twice or more. But that makes it extremely unresponsive due to local gun recoil and stuff. And apart from that game host sometimes misses those inputs entirely, and never sees fire animation. I partly solved it by dealing damage using RPC which constantly goes through, but visual feedback is sometimes missing. So a question: How to make clients execute actions only once, and why sometimes inputs are missed entirely?
Answers
-
Hi giedzilla,
Can you share your input polling and also how your weapon fires and damage is dealt?
Please take a look at the projectile sample, it may help: https://doc.photonengine.com/en-us/fusion/current/game-samples/fusion-projectiles
-----
Isaac Augusto
Photon Fusion Team
0