0 votes
asked in General Help by
Hello, I have setup finalIK AimIK script on the player. TheAImIK object is set 10 meters in front of the player and all works fine in single player mode/ However when i play with 2 players the AimIK script deosn't update to the AimIK transform objects location over the network. I can't seem to get the script to update to the object location over the network. Do you have any experience with this or has anyone got any pointers to get the script to work with networking?


1 Answer

0 votes
answered by (22.7k points)


AimIK doesn't do any networking on it's own, you'll just have to sync the target position over to the remote client(s).

With AimIK you have 2 ways - sync aimIK.solver.IKPosition using on PhotonSerializeView or assign an already synced Transform as the IK target. Keep in mind that if you have the target slot assigned, it will overwrite aimIK.solver.IKPosition before each update, so if you synced IKPosition, but had an unsynced Target transform, it would not move.

Welcome to RootMotion Q&A, where you can ask questions and receive answers from the developer of Final IK and PuppetMaster and other members of the community.

Post as a guest, create an account or login via Facebook.

Please use the correct category when you post your questions.