#Gunpick up Shows only on unreal viewport but not on client windows. PLEASE HELP!!

29 messages Β· Page 1 of 1 (latest)

jovial spire
#

Does your combat component is replicated? Check blueprint for your character and then in combat component check: "Component replicates". It should be checked.

marble citrus
#

Yes I do Have it checked

#

I do have this green underline at ServerEquipButtonPressed in blastercharacter.h but I have it's definition in .cpp file where it is changed as ServerEquipButtonPressed_Implementation() as shown in the video and It is as said in the video too and same code as in the git repo

#

I tried just keeping the definition as for this void fn leaving the definition empty but still I am getting the same result

marble citrus
#

@eternal mortar Sir can you please Help me πŸ™

plucky sonnet
#

are you calling ServerEquipButtonPressed() in your EquipButtonPressed() function?

marble citrus
#

Yes I did call it in the else statement

plucky sonnet
#

sorry just looking through my code to see what it could be - have you bound the overlapping weapon in the GetLifetimeReplicatedProps() function? In the CombatComponent header and cpp file

marble citrus
#

umm noπŸ‘€

#

Can you send me a screenshot of the code

#

both header and cpp file

plucky sonnet
#

sure one minute

#

if you haven't got the functions yet, it'll be coming up soon! I'm sure this is what fixed the issue πŸ™‚

marble citrus
#

Am a gonna try it

marble citrus
#

Do I need to Include any thing in cpp or .h file beacause am getting an error at DOREPLIFETIMEI added its definition in .h and used that line in .cpp file

plucky sonnet
#

#include "Net/UnrealNetwork.h" in the coo

marble citrus
#

I tried to add include net/unrealNetwork id did remove the issue lemme try it in unreal

plucky sonnet
#

cpp

#

this is something done in the lecture though, so it's probably best to follow along to make sure you don't miss any steps πŸ™‚

marble citrus
#

Yeah I followed all the way along I did rewatch it twice and cross check the code from git yet I am still having this trouble

plucky sonnet
#

it might be in upcoming lectures, which one are you on?

marble citrus
#

Section 4: lecture 48 and 49

#

Equipping Weapons and Remote Procedure calls

plucky sonnet
#

he does this in lecture 50 πŸ˜‚

marble citrus
#

but he does get the result in these videos so I completed video 49 even after 48 so I was totally mad for where things are going wrong

#

Is it ok If I sent you DM?

plucky sonnet
#

yeah I found Stephen's videos all go perfectly well but mine have issues, but he still addresses the issues we're having even though he doesn't seem to! Haha it's all good, keep it up ^^