- Home /
This question was
closed Jan 03, 2015 at 06:03 PM by
Graham-Dunnett for the following reason:
Duplicate Question
error BCE0043
i'm working on a code ... i'm kind of new so just tell me what to fix and where :
#pragma strict
var Thedamage : int = 50;
var Distance : float;
function update ();
{
if (Input.GetButtonDown("fire1"))
var hit : RaycastHit;
if (Physics.Raycast (Transform.position , Transform.transformDirection(Vector3.forward),hit))
{
Distance = Hit.distance;
Hit.transform.sendmessage("applyDamage", TheDamage , SendMessageoption.DontRequireReciver);
}
}
Comment
Follow this Question
Related Questions
Drag Object Via Axis Handles 0 Answers
how can i manually update unity web player ? 0 Answers
Raycast shooting in the middle of the screen 0 Answers
How to add to a 3D object's length through code? 1 Answer
Applying a texture to a sphere 1 Answer