Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by georetro · Jul 09, 2013 at 03:49 PM · javascriptemit

BCE0031: Language feature not implemented

Hey everyone! I am having a lot of problems trying to get this to work. Basically I have made a RayShoot script and am trying to get Muzzle Flash working for my gun. Everytime I try to run the code I get an error:

"Assets/Scripts/RayShoot.js(65,34): BCE0031: Language feature not implemented: Ambiguous(Void Emit(), Void Emit(Int32), Void Emit(Vector3, Vector3, Single, Single, Color), Void Emit(Vector3, Vector3, Single, Single, Color, Single, Single)). "

This is only a portion of my script. This is the error which it is pointing out:

 function MuzzleFlashShow (){
     if(muzzleFlashTimer > 0){
         muzzleFlash.Emit = false;
         light1.active = false;
         light2.active = false;
         light3.active = false;
     }
     
     if(muzzleFlashTimer == muzzleCooler){
         muzzleFlash.transform.localRotation = Quaternion.AngleAxis(Random.value * 360 * MuzzleSpeed , Vector3.forward);
         muzzleFlash.Emit = true;
         light1.active = true;
         light2.active = true;
         light3.active = true;
     }
 }

It is the: ".Emit" which is causing the problem but in order for the Muzzle Flash to show when it fires I have to have the .Emit. BTW I am following a guy doing a tutorial, he says that you have to have the .Emit instead of the .emit. I have tried the lowercase .emit, it works but even when I am not firing, the lights and Muzzle Flash seem to go off.

If anyone can help me, then it would be a great help :)

  • George

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jessy · Jul 09, 2013 at 04:15 PM 0
Share

There is no reason that Emit should be capitalized; UnityScript doesn't have properties.

avatar image georetro · Jul 09, 2013 at 07:46 PM 0
Share

Hey Jessy thanks for that! But whenever I do use a lowercase emit it works, but my muzzle flash and lights seem to keep flickering on and off even when I am not shooting :( Can anyone maybe help?

avatar image georetro · Jul 10, 2013 at 02:29 PM 0
Share

$$anonymous$$y muzzle flash and lights seem to keep flickering on and off even when I am not shooting :( Can anyone maybe help?

avatar image Eric5h5 · Jul 10, 2013 at 02:38 PM 0
Share

That's a different question. Edit this one or post a new question.

@Jessy: Unityscript does have properties actually.

 private var foo : int;
 public function get Foo () : int { return foo; }
 public function set Foo (value : int) { foo = value; }

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by alteveer · Nov 24, 2013 at 12:24 AM

Hi georetro,

I am thinking that Emit wants to be "called," i.e.: .Emit(), instead of being assigned-to: .Emit = false.

See docs here: http://docs.unity3d.com/Documentation/ScriptReference/ParticleEmitter.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Setting Scroll View Width GUILayout 1 Answer

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Instantiate into array : Out of range? 1 Answer

How to make it two seconds for Time.time? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges