Quantcast
Channel: Questions in topic: "ragdoll"
Viewing all articles
Browse latest Browse all 565

have I any mistakes?

$
0
0
HI I have script, of course it is working, but it isn't changing object to ragdoll please help :| var life = 100; var Damage = 25; var replacement: Transform; function OnCollisionEnter(theCollision : Collision) { if(theCollision.gameObject.name == "bullet(Clone)") { life -= Damage; audio.Play(); } } function Update() { if (life == 0) { Instantiate(replacement, transform.position, transform.rotation); Destroy (gameObject, 1); } }

Viewing all articles
Browse latest Browse all 565

Trending Articles



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