UnityNinja Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

UnityNinja CommunityLog in

UnityNinja - Video Game Development Community, including Resources, Forums, Marketplace & More.


descriptionSendMessage ApplyDamage has no receiver!  / I can't figure it out. EmptySendMessage ApplyDamage has no receiver! / I can't figure it out.

more_horiz
Everything was working perfect last night. but somehow today when the enemy attacks me, I get this error.

The weird thing is I haven't changed anything. and this happened.

SendMessage ApplyDamage has no receiver!  / I can't figure it out. Hmm10


Can someone help me to get through this :/  I can send anything that needed.

descriptionSendMessage ApplyDamage has no receiver!  / I can't figure it out. EmptyRe: SendMessage ApplyDamage has no receiver! / I can't figure it out.

more_horiz
Hi
the function should send the message to the player who should have Health
a type code:

Code:


var Health : float = 100;

Function ApplyDamage (float: amount)
{
  Health -= amount ;
}

Double check your function (PlayerHealth.js)
otherwise show us the integer codes.
Hello
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply