Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

BCE0023: No appropriate version of 'UnityEngine.Component.SendMessage' for the argument list '(String, int, UnityEngine.Rigidbody)' was found.

$
0
0
var projectile : Rigidbody; var speed = 10; var TheDammage = 50; function Update () { if(Input.GetButtonDown("Fire1")) { clone = Instantiate(projectile, transform. position, transform.rotation);// bullet shoots clone.velocity = transform.TransformDirection(Vector3 (0, 0, speed));// bullet speed Destroy (clone.gameObject, 5);// bullet is destroyed Rigidbody.SendMessage("ApplyDammage", TheDammage, projectile );// I need to find a way to replace Rigidbody } }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>