Download

Spawn an Actor and replication

Hi guys,

I have been having issues with replication in BPs.

I spawn an actor using Pawn(class called MyCharacter) called Weapon(class called BP_Weapon) and call the FireWeapon on the weapon variable from the Pawn. If the switch has authority is remote I want to call the (run on server - reliable) ServerFireWeapon event on the Weapon class. Yet the ServerFireWeapon never triggers on the server.

Why is that?

My feeling is that when I spawn the actor, it does not set the owner to MyCharacter. (it mentions Owning Client)

Any ideas would be great?

Thanks.