- Home /
Machinegun.js script disabled on play
Hi,
I have the PS Tutorial and everything worked before, now i made a new project and redid the tutorial for the second time and so far so good, everything works but one thing is strange.. The Machinegun.js script gets disabled when i hit play. Everything else works, missilelauncher and so on, the machinegun also makes sparks where it hits, and every now and then i see the Machinegun.js script enable for a split second, then i have one muzzleflash and it disables again. I did notice that when i stop playing the "model" under the tag manager lights up yellow for a split second..
anybody know why this is ?
Answer by Marcurios · Dec 26, 2012 at 05:51 PM
OK, after searching i found out what was the problem, under the muzzleflash.enabled = false; line there was a line that says enabled = false; line, i removed it and the script stays enabled..
so the enabled = false; line disables the script itself..
don't know why the author put that line in though..
Your answer
Follow this Question
Related Questions
avi play how? to do this 2 Answers
Cards: Stacking, drawing, hand, and shuffling 1 Answer
Editor freezes after play 3 Answers
can morph be used in u nity 1 Answer
play movie texture smoothly in unity 0 Answers