Jump to content
  • 0
raPalooza~

Timed clif->specialeffect?

Question

3 answers to this question

Recommended Posts

  • 0

It really depends on what you wish to accomplish. Do you want to do it from a plugin or from scripts? Do you want the effect to be centered on the player or on another unit (mob,npc, ...)? Do you want all players in the area to see it or only one player?

 

From a plugin you would simply push to the event queue, while from script you would use addtimer() or npc timers in combination with specialeffect().
 

	@timed_effect = EF_HITDARK; // set a PC variable with the effect to use
	addtimer(500, strnpcinfo(NPC_NAME) + "::OnTimedEffect"); // set the trigger to 500ms in the future
	end; // terminate execution

OnTimedEffect:
	specialeffect(@timed_effect, AREA, playerattached()); // show the effect to everyone in the area, centered on the attached player
	end;

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.