Any help?
Options
I'm having problems with a script named bot, the error is Bot.cs(233,17): error CS7036: There is no argument given that corresponds to the required formal parameter 'weapon' of 'PlayerDamage.TotalDamage(float, string, string)'.
Note that player damage script has nothing to do with bot that needs weapon message, Bots when kill player doesnt say bot killed player but only player died.
The stuff bot has to do with player damage script is only damaging the player.
Script bot error line.
Player damage line.
How can i fix it?
Note that player damage script has nothing to do with bot that needs weapon message, Bots when kill player doesnt say bot killed player but only player died.
The stuff bot has to do with player damage script is only damaging the player.
Script bot error line.
playerDamage.TotalDamage(damage + maxDamage);
Player damage line.
public void TotalDamage(float damage, string weapon, string message){ if(disableDamage) return; fadeValue = 2; photonView.RPC("DoDamage", PhotonTargets.All, damage, weapon, message, PhotonNetwork.player); }
How can i fix it?
-1
Comments
-
Yo
It's not related to PUN in this case
Anyway, TotalDamage() must be called with 3 arguments ( float, string, string )TotalDamage(45, "FAMAS", "Hit on leg");
1 -