|
im doing a script for when a bullet hit an enemy it will damage the enemy and at the same time it will spawn a particle systeme (like blood)i aready done the part where it damage the enemy and kill him but i dont know how to spawn the particle systeme. can you help me. here is my script:
(comments are locked)
|
|
var hitPoints = 1; var bulletDamage = 1; function OnCollisionEnter(coll:Collision){
} http://unity3d.com/support/documentation/ScriptReference/Object.Instantiate.html Use something off this... It'll give you the main idea as to how to do this. http://unity3d.com/support/documentation/Manual/Instantiating%20Prefabs.html For more reading.
(comments are locked)
|
