Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

BCE0075 Namespace cannot be used as expressions

$
0
0
var hitPoints = 100.0; var deadReplacement : Transform; var dieSound : AudioClip; function ApplyDamage (damage : float) { if (hitPoints <= 0.0) return; hitPoints -= damage; transform.GetComponent(AI).attackRangeAmt = transform.GetComponent(AI).attackRange * 3; ;This is a part of my scripts, I got an error as "BCE0075: 'AI' is a namespace. Namespaces cannot be used as expressions." Because I learn C#, I have no idea about JS, So I will appreciate if you could do me a favor!

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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