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!
↧