Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

I need help with this script, where are the errors?

$
0
0
I cant seem to find the errors in my script could someone point them out so I can fix them? Code : #pragma strict var damageDelay = 3.0; var Spikes : boolean; var Jab : AudioClip; function Start () { } function Update () { if(InSpikes = true){ yield WaitForSeconds(damageDelay); Health.HP = Health.HP - 1; audio.PlayOneShot(Jab); } } function OnTriggerEnter (){ InSpikes = true; } function OnTriggerExit (){ InSpikes = false; }

Viewing all articles
Browse latest Browse all 827

Trending Articles



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