Noob question. I’m going through the Lerpz tutorial and have reached the point where I’m placing enemy robots. The instructions say to drag the “EnemyDamage” and “EnemyPoliceGuy” scripts to the character controller in the inspector. When I try to do this, it doesn’t take. I get the circle with the slash through it indicating that this isn’t possible. Am I missing something? I seem to be able to drag the scripts to the instances of the robots, but not the prefab. As always, thanks for the help! :roll:
Awesome. Thanks! Wonder why the don’t mention that in the tutorial? They could be a lot clearer in many areas. I’ve spent many hours just trying to figure out what they mean rather than learning the program.
Regarding your tutorials, I downloaded the free ones and was very impressed. The only thing I would say is slow down. I got lost in the scripting sections particularly. From the forum entries I’ve read, scripting is the weakest area by far for most noobs. And yet, to make the program dance you really have to know it cold. There’s no way around it. If you make videos on scripting, I’m there! I’m sure I’ll buy your basic tutorials package as well.
Hi guys, I had the same issue as tool55 and the same answer solved my problem. However, EnemyDamage is missing from the “Components>Scripts” menu… Is there another way to put the EnemyDamage script onto the Copper Prefab?
I’m fairly new to his as well so I’m not sure what’s happening with your script. However, there should be pulldown menus for each variable in the inspector that will allow you to select the proper audio file etc. Click where it says “none” and you should see a list of available files. If a variable type is defined but not given a value, you’ll see “none” in the inspector. For example:
var target : Transform;
This allows you to select the value after the fact (in this case, “Player”).
If you already know all this, I apologize. I’m still learning the mysteries of coding myself.
should it say “adding a prefab will lose parent connnection.” also does “On the prefab, select the prefab.” does that just mean click on the Copper prefab in the Hierarchy