Hello Team,
We are using Opsive weapon system in a multiplayer game that is integrated with photon, we are able to fetch the information(name) when other players shoot us with gun weapons, but while attacking with Granade unable to fetch the attacker's information. Please let us know how to fetch the attacker's information while we/opponent uses a grenade.
Sample code snippet:
PhotonView sourceView = PhotonNetwork.GetPhotonView(sourcePhotonViewID);
if (sourceView != null) {
source = sourceView.GetComponent<IDamageSource>();
}
Error: sourceView is coming as null
We are using Opsive weapon system in a multiplayer game that is integrated with photon, we are able to fetch the information(name) when other players shoot us with gun weapons, but while attacking with Granade unable to fetch the attacker's information. Please let us know how to fetch the attacker's information while we/opponent uses a grenade.
Sample code snippet:
PhotonView sourceView = PhotonNetwork.GetPhotonView(sourcePhotonViewID);
if (sourceView != null) {
source = sourceView.GetComponent<IDamageSource>();
}
Error: sourceView is coming as null