- Home /
Question by
gb3803 · Oct 10, 2013 at 09:05 PM ·
monodevelophowhowtodoes
What does it mean by "insert a semicolon at the end" if i already have one
#pragma strict
var TheDammage : int - 50;
var TheDistance : float;
function Update ()
{
if (Input.GetButtonDown("fire1"))
{
var hit : RaycastHit;
if (Physics.Raycast (transform.postition, transform.TransformDirection(Vector3.forward), hit))
{
Distance = hit.distance;
hit.transform.SendMessage("ApplyDammage", TheDammage, SendMessageOptions.DontRequireReceiver);
}
}
}
Comment
Answer by YoungDeveloper · Oct 10, 2013 at 09:06 PM
Next time say on what line the error is
var TheDammage : int - 50;
var TheDammage : int = 50;
or if you need negative
var TheDammage : int = -50;
Your answer
![](https://koobas.hobune.stream/wayback/20220613115715im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Make a popular game 2 Answers
unity monodevelop won't open on my computer 0 Answers
Double clicking Unity console log does not goto MonoDevelop file and line 3 Answers