• 0
raPalooza~

Timed clif->specialeffect?

Question

2 answers to this question

  • 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now