Author Topic: VFX_DUR_WEB_MASS  (Read 335 times)

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
VFX_DUR_WEB_MASS
« on: March 06, 2012, 05:23:10 pm »


               Is there any way to apply this effect and have it last longer than a single heartbeat? I'm trying to apply it via a trigger to a floor (just a non-sticky webbing) and despite what duration I try and set with it, it disappears after the first heartbeat. Better yet ... is there possibly a placeable option I missed somewhere?
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
VFX_DUR_WEB_MASS
« Reply #1 on: March 07, 2012, 01:47:19 am »


               Hmm. Not sure how you were trying it but this method is permanent for me in testing:


void main()
{
    object oTarget = GetObjectByTag("BoxCrate51");
    effect eMassWeb = EffectVisualEffect(VFX_DUR_WEB_MASS);

    ApplyEffectToObject(DURATION_TYPE_PERMANENT, eMassWeb, oTarget);
}

If you already tried a permanent duration it could be that whatever object you are trying to apply it to might be too short or lowered and the visual is actually appearing under the ground...just a thought.

Hope it helps.
               
               

               


                     Modifié par GhostOfGod, 07 mars 2012 - 01:50 .