Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » SendMessage ApplyDamage has no receiver! / I can't figure it out.

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

View previous topic View next topic Go down  Message [Page 1 of 1]

skllmyh


Member [Lv. 0]
Member [Lv. 0]
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.




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

View user profile

PitbullM

avatar
Member [Lv. 3]
Member [Lv. 3]
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

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum