Jump to content

Marcousik

Members
  • Content Count

    302
  • Joined

  • Last visited

Community Reputation

122 Excellent

About Marcousik

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male

Recent Profile Visitors

7,045 profile views

Single Status Update

See all updates by Marcousik

  1. Is there a possibility to access to an editor-created emittler from a script and change his value(s) ?

    1. Show previous comments  1 more
    2. Marcousik

      Marcousik

      yes indeed thx for the answer it may look like a stupid question but indeed I tried to catch the emittler with entity:Findchild("name") but it returns an error if I try to execute a 

      SetAcceleration(number x, number y, number z) for example on it:

      In the screenshot self.fumee is an editor-created emittler that the script just does not recognize ?

      807180222_Screenshot(92).thumb.png.2245220572d3a9a5b569dc1e68c9c208.png

      What am I doing wrong ?

    3. mdgunn

      mdgunn

      Ah something I forgot to mention.....you need to cast it to an emitter type otherwise it will appear to be only a generic entity. 

      local emitter = tolua.cast(self.entity,"Emitter")

      Is this maybe the problem you are hitting?

      It's easy to forget this bit when you rarely have to cast in lua.

       

       

    4. Marcousik

      Marcousik

      Ah yes this should be the solution, right I forgot this thx.

×
×
  • Create New...