Aller au contenu

Photo

Can't get a VFX to show


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

#1
Morbane

Morbane
  • Members
  • 1 883 messages
 


void main()
{
	object oPC = GetPCSpeaker();
	location lLoc = GetLocation(GetWaypointByTag("wp_summon_fx"));
	
	CreateObject(OBJECT_TYPE_PLACED_EFFECT, "purple_lightning", lLoc);
	
	//ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,                     EffectNWN2SpecialEffectFile("purple_lightning",             GetWaypointByTag("wp_summon_fx")), lLoc, 3.5f);
}


What am I doing wrong?

#2
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
Are you able to see the placed effect "purple_lightning" in the toolset? I have had difficulties in the past with making new PlacedEffect blueprints. Chaos says he always copies a current one and changes the vfx on it.

#3
Morbane

Morbane
  • Members
  • 1 883 messages
yep - I can place the blueprint and it shows. When I try to create it - nothing...

#4
Morbane

Morbane
  • Members
  • 1 883 messages
Would there be a problem if my location is an ipoint?

#5
Morbane

Morbane
  • Members
  • 1 883 messages
ok - I changed the ipoint to a waypoint and viola! it works.

#6
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
Oh! the object with the tag "wp_summon_fx" was an ipoint? It probably didn't work because you referenced the object with GetWaypointByTag(). That wouldn't work on an ipoint. Glad it works.