Quantcast
Channel: Questions in topic: "die"
Viewing all articles
Browse latest Browse all 115

Player taking damage on collision. Can't get the script to work!?

$
0
0
var health = 50; var damage = 10; var Die = 0; function ApplyDamage (damage : int) { health -= damage; if(health <= 0) { Die(); } function Die(); { //Die and or Respawn }; } ***Error:*** Assets/Player.js(12,10): BCE0044: expecting (, found 'Die'.

Viewing all articles
Browse latest Browse all 115

Trending Articles



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