HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Time Stop Help

04-06-2010, 01:51 AM#1
BuRnInSpartan
I guess i've been keeping the triggers forum busy lately but i have a new spell i've been working on that gets glitchy. I have attempted to make a time stop spell where i use purge to stop the unit initially but i want the caster to be paused for a brief duration too (3 seconds). my trigger is as follows
Trigger:
Time Stop
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
(Ability being cast) Equal to Time Stop
Collapse Actions
Set TSU = (Casting unit)
Special Effect - Create a special effect at (Position of (Casting unit)) using TimeAura.mdx
Unit - Pause TSU
Countdown Timer - Start TS as a One-shot timer that will expire in 3.00 seconds
Trigger - Turn on Time Stop Timer <gen>

Trigger:
Time Stop Timer
Collapse Events
Time - TS expires
Conditions
Collapse Actions
Unit - Unpause TSU
Special Effect - Destroy TSSE

The problem is is that when the unit becomes paused he doesn't unpause despite the timer expiring. What i do notice is that his command bars flash in and out every 3 seconds so it seems like it keeps resetting itself or something.
04-06-2010, 02:04 AM#2
Veev
Why can't you just use a single-target stun?

Pause is wacky because if the unit dies while paused it won't show it's death animation until after the unit is unpaused. There may be some other side-effects.
04-06-2010, 02:51 AM#3
BuRnInSpartan
i just went back and edited the casting time in unit editor hehe i guess that's even better.
04-07-2010, 03:57 AM#4
TheKid
You can always just use a trigger that responds to unit death, and do PauseUnit(GetTriggerUnit(), false) to make sure these kind of graphic glitches don't occur. Whenever I use PauseUnit personally I like to make sure that there is a method included of being sure the unit becomes unpaused if necessary.

Also, be sure to freeze the animation speed of the unit so it looks authentic :P
04-07-2010, 04:19 AM#5
BuRnInSpartan
what do you mean?
04-07-2010, 09:41 AM#6
rain.mon
Trigger:
Unit - A unit Begins channeling an ability

should be
Trigger:
Unit - A unit starts the effect of an ability

This is prob why your unit was getting paused every 3 seconds due to him still goin on with his channel after the unpause and thus triggering the spell again.
04-07-2010, 01:27 PM#7
Strilanc
If I remember correct, setting a unit's time scale (butchered as "animation speed" in GUI) to 0 will pause it with fewer side effects?
04-07-2010, 03:12 PM#8
Kueken
Animation Speed is purely visual without any effect on gameplay.

Pausing the unit makes it remember the last given order, so you cast the spell, pause the unit, unpause it, it immediately casts the spell again.
04-07-2010, 08:30 PM#9
BuRnInSpartan
cool thanks all. i'll give it a shot.
04-08-2010, 03:03 AM#10
TheKid
I was only recommending it so the unit doesn't wave its arms and crap when it should be "frozen in time".
04-09-2010, 05:32 AM#11
[VDM]Amn
Quote:
Originally Posted by rain.mon
should be
Trigger:
Unit - A unit starts the effect of an ability
that's it
or maybe u wanna give a try to Unit - Finishes casting an ability

Quote:
Originally Posted by Kueken
Pausing the unit makes it remember the last given order, so you cast the spell, pause the unit, unpause it, it immediately casts the spell again.
yeah, he gets caught in a time loop or something xD
04-11-2010, 04:08 PM#12
Kueken
Quote:
Originally Posted by TheKid
I was only recommending it so the unit doesn't wave its arms and crap when it should be "frozen in time".
I know, I was referring to Strilanc's post:
Quote:
If I remember correct, setting a unit's time scale (butchered as "animation speed" in GUI) to 0 will pause it with fewer side effects?