Aller au contenu

Photo

VFX_BEAM Bug


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Calvix2

Calvix2
  • Members
  • 3 messages
Hi,
I wanted create beams between 4 crystals.
Script is in OnHeartbeat  and its something like :


void main()
{
    object obelisk =  GetObjectByTag("cal_calvix_caster1");
    ApplyEffectToObject( DURATION_TYPE_TEMPORARY , EffectBeam( VFX_BEAM_MIND , OBJECT_SELF ,BODY_NODE_CHEST) , obelisk , 4.5 );

}


it works , but sometimes beam didnt disappear and the VFX effect looks like PERNAMENT

Anyone knows how make it  without that bug ?
i tried use EffectVisualEffect(VFX_BEAM_MIND) instead but same bug appears

#2
_Guile

_Guile
  • Members
  • 685 messages
I use Invisible objects as the target of the beam, this way I can destroy them and make them re-appear by spawning them back in (through scripting) at the given waypoint, also, this allows for better placement of VFXs too, as you can move the invisible object around till you get the placements correct.

Just saying...

Hope that this gives you some insight, as far as the bug, dont' know for sure, never seen that.

For the record, you should "Get" and object by using a waypoint, this way it doesn't search the entire module looking for that object... (Obviously you will have to paint a waypoint in that area and give it a tagname)  e.g.

object oWay = GetWaypointByTag("tagname");  //enter the tagname of the waypoint
object oObject = GetNearestObjectByTag("tagname", oWay); //enter the tagname of the object

Modifié par _Guile, 30 août 2011 - 04:48 .


#3
Failed.Bard

Failed.Bard
  • Members
  • 774 messages

_Guile wrote...
For the record, you should "Get" and object by using a waypoint, this way it doesn't search the entire module looking for that object... (Obviously you will have to paint a waypoint in that area and give it a tagname)  e.g.

object oWay = GetWaypointByTag("tagname");  //enter the tagname of the waypoint
object oObject = GetNearestObjectByTag("tagname", oWay); //enter the tagname of the object


  GetObjectByTag is substantially faster at getting a unique tag than GetNearestObjectByTag.  See the thread here for discussion on it and comparative testing results http://social.biowar...2/index/8147590

#4
Calvix2

Calvix2
  • Members
  • 3 messages

_Guile wrote...


It seems work right .. so Thanks