i use unity's FPS controller.i manage to make camera shake on the other players.
the idea is. i shoot, my camera shakes. and when enemy is hit, his camera shakes as well. like feeling the impact.
so i manage to do this. i use allbuffered. but the problem is, everyone who are not hit are affected as well. i was confused. i manage to do this with damage health script without any problem. (only the target is affected).
but with the camera shake. it affects everyone. did i miss something or is it something with photonnetwork target?
i use raycast. and store all my hit components. and able to read parent or child.
i will show you the script. it may be dirty. was really want to manage how to fix this issue. i have the clean version one before i try to do camera shake on enemies cam.
my goal for this is, i only want the enemie's cam to shake(who is hit by my raycast) would be the only one affect. not everyone else or yourself.
https://forum.unity3d.com/threads/need-help-with-camera-shake-photon-unity.477194/
the idea is. i shoot, my camera shakes. and when enemy is hit, his camera shakes as well. like feeling the impact.
so i manage to do this. i use allbuffered. but the problem is, everyone who are not hit are affected as well. i was confused. i manage to do this with damage health script without any problem. (only the target is affected).
but with the camera shake. it affects everyone. did i miss something or is it something with photonnetwork target?
i use raycast. and store all my hit components. and able to read parent or child.
i will show you the script. it may be dirty. was really want to manage how to fix this issue. i have the clean version one before i try to do camera shake on enemies cam.
my goal for this is, i only want the enemie's cam to shake(who is hit by my raycast) would be the only one affect. not everyone else or yourself.
https://forum.unity3d.com/threads/need-help-with-camera-shake-photon-unity.477194/