hi
i have been currently working with multiplayer and started off by creating c++ first person project in unreal 5. i have created a function and tried out pretty much all 3 (client, server and multicast) but none of them works for the client. server cant see clients projectiles, i have replicated the projectile itself but nothing
here’s how the code is looking currently, im pretty lost on why clients projectile doesnt want to work.
i have tried to take the Fire function and move it from the default (which uses SkeletalMeshComponent) script to character, but it doesnt seem that i can use the enhanced input with Fire, i have tried to look on tutorial on this specific but its mostly for unreal 4 and that doesnt work either. they are using “HasAuthority()” and i cant use that in SkeletalMeshComponent.
and just to clarify more, having FIre Function in a SkeletalMeshcomponent is unreal defaulted script
then you need to make sure that your spawnable bullet marked as replicated.
debug RPC events with UE_LOG, which messages you will see in the logs of the client and server.
i have debugged the code with addonscreendebugmessage(), both in server and in the firing/shooting function. all the debug is running, i have marked the projectile, the whole object it self even, but the projectile doesnt show for the client side