A few questions!

Support for MFPS 2.0
Post Reply
User avatar
Posts: 11
Joined: Sat Sep 11, 2021 9:57 pm

Hello! :D

I have a few questions.

1 - How do i get what the guns bullet hits

2 - Why dosen't my gun show up in the player?

3 - How do i get how many kills the player has if it is possible?
User avatar
Posts: 1778
Joined: Sun Dec 07, 2014 3:18 pm


1. Check bl_Bullet.cs -> OnHit(), there you can get what the bullets hit with the Raycast 'hit', e.g: hit.transform = the transform that the bullet hit.

2. Please elaborate, tell me the scenario when this happens, do you receive any log when this happens?, is that you own added weapon?,
does it happens in all player prefabs?...

3. You can get the kills count of any player with: Player.GetKills()
where 'Player' is a reference to the Photon Player, e.g, if you want to get the kills of the local player:

Code: Select all

        int kills = bl_PhotonNetwork.LocalPlayer.GetKills();
How to find your Invoice Number: Here
How to find your Order Number: Here
Post Reply