Forum Announcement, Click Here to Read More From EA_Cade.

[Solved] Using multiple vfx in an interaction outcome?

pboxpbox Posts: 630 Member
I have an object that has four visual effects (flames on a candle -- it's the same effect in four _FX_ slots, similar as on the stereos), and a custom Extinguish interaction for which I'd like to use the "putout" effect on all four slots as well. I see that the original object (the Kwanzaa holiday candle) does not do that, it has different effects depending on how many lights are lit, but alas I don't have a "smoke from four candles" vfx that I could use.

Is there some way to do this or am I stuck with only one of the candles producing smoke when put out?

My code for the Extinguish interaction right now (only one effect is visible):
              <U n="outcome">
                <L n="basic_extras">
                  <V t="vfx">
                    <U n="vfx">
                      <U n="vfx">
			<T n="effect_name">gp1_Obj_kwanzaa_day_01_putout</T>
			<V t="Slot" n="joint_name">
			<T n="Slot">_FX_0</T>
			</V>
                      </U>	  
                      <U n="vfx">
			<T n="effect_name">gp1_Obj_kwanzaa_day_01_putout</T>
			<V t="Slot" n="joint_name">
			  <T n="Slot">_FX_1</T>
			</V>	
                      </U>	  
                      <U n="vfx">
			<T n="effect_name">gp1_Obj_kwanzaa_day_01_putout</T>
			<V t="Slot" n="joint_name">
			  <T n="Slot">_FX_2</T>
			</V>	
                       </U>	  
                      <U n="vfx">
			<T n="effect_name">gp1_Obj_kwanzaa_day_01_putout</T>
			<V t="Slot" n="joint_name">
			  <T n="Slot">_FX_3</T>
			</V>	  
                      </U>
                    </U>
                  </V>
                  (etc)

The equivalent for the "lit" state (which works fine, but this is not in an outcome):
            <L n="client_states">
              <U>
                <T n="key">110473<!--CommodityBasedObjectStateValue: HolidayCandleWax_Lit--></T>
                <U n="value">
                  <V n="vfx_state" t="apply_new_value">
                    <V n="apply_new_value" t="start_vfx">
                      <V n="start_vfx" t="multiple_effects">
                        <U n="multiple_effects">
                          <L n="vfx_list">
                            <U>
                          <T n="effect_name">gp1_Obj_kwanzaa_day_01</T>
                              <V t="Slot" n="joint_name">
                                <T n="Slot">_FX_0</T>
                              </V>
                            </U>
                            <U>
                              <T n="effect_name">gp1_Obj_kwanzaa_day_01</T>
                              <V t="Slot" n="joint_name">
                                <T n="Slot">_FX_1</T>
                              </V>
                            </U>
                            <U>
                              <T n="effect_name">gp1_Obj_kwanzaa_day_01</T>
                              <V t="Slot" n="joint_name">
                                <T n="Slot">_FX_2</T>
                              </V>
                            </U>
                            <U>
                              <T n="effect_name">gp1_Obj_kwanzaa_day_01</T>
                              <V t="Slot" n="joint_name">
                                <T n="Slot">_FX_3</T>
                              </V>
                            </U>							
                          </L>
                        </U>
                      </V>
                    </V>
                  </V>
                </U>
              </U>

Any ideas on how I could to this?
Stuff for TS2 · TS3 · TS4
Post edited by pbox on

Comments

  • Options
    SimGuruEugiSimGuruEugi Posts: 503 SimGuru
    You'll have the match the pattern that the holiday candles use to get this to work the way you want it to. I'm not familiar with VFX modding, but you might be able to combine your existing effects into one and play that.
  • Options
    pboxpbox Posts: 630 Member
    you might be able to combine your existing effects into one

    Hm yeah, that might be another strategy if they can't be combined via tuning alone. The candles (and everything else I have seen so far) seem to always be playing only one effect in the context of an outcome.

    Stuff for TS2 · TS3 · TS4
  • Options
    ScumbumboScumbumbo Posts: 148 Member
    Since the version in the outcome isn't a TunableList, perhaps it would work to instead put multiple vfx tuples? Like this:
                  <U n="outcome">
                    <L n="basic_extras">
                      <V t="vfx">
                        <U n="vfx">
                          <U n="vfx">
    			<T n="effect_name">gp1_Obj_kwanzaa_day_01_putout</T>
    			<V t="Slot" n="joint_name">
    			<T n="Slot">_FX_0</T>
    			</V>
                          </U>
                        </U>
                      </V>
                      <V t="vfx">
                        <U n="vfx">
                          <U n="vfx">
    			<T n="effect_name">gp1_Obj_kwanzaa_day_01_putout</T>
    			<V t="Slot" n="joint_name">
    			<T n="Slot">_FX_1</T>
    			</V>
                          </U>
                        </U>
                      </V>
                      <V t="vfx">
    etc...
    
  • Options
    pboxpbox Posts: 630 Member
    edited February 2016
    Ooh, I'm going to have to try that. I do remember I changed that part, but no idea if I ever tried this particular variant .. thank you =)

    E: Awesome, that did the trick:

    70055_160202132341pbox_light-ceiling-photopollution_extinguish.jpg

    Thanks so much! \o/
    Stuff for TS2 · TS3 · TS4
  • Options
    ScumbumboScumbumbo Posts: 148 Member
    pbox wrote: »
    Awesome, that did the trick:

    Thanks so much! \o/
    No problem - haven't played with vfx much other than in an object's state, so was wasn't at all sure that would work, good to know I wasn't sending you down a dead end road ;)
  • Options
    SimGuruEugiSimGuruEugi Posts: 503 SimGuru
    Glad this worked out!
Sign In or Register to comment.
Return to top