HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ability trigger

10-13-2006, 03:52 AM#1
Zamoune
Ok, i wanted an custom ability called flashbang that make a locked zoom camera
sticked to the player, or a white flash.
I Added my ability in the object editor, then going to program the trigger and it doens't work. If any of you have any otherway to write it, it would be nice. Here is a attached pic of my trigger. Thank you
Attached Images
File type: jpgAbilitie.jpg (112.6 KB)
10-13-2006, 04:12 AM#2
Vexorian
please use the [trigger] tag next time : http://www.wc3campaigns.net/misc.php?do=bbcode#trigger

It doesn't work... what part of it exactly doesn't work?

Edit: I see, you are using (Picked Player) inside of a Unit Group enumeration (that doesn't work at all).

Use Owner of (picked unit) instead
10-13-2006, 03:50 PM#3
Zamoune
I jsut figured out, what was wrong. Actually Unit with abilities never stop moving, it has a trigger so he always move(each 0.16 sec). Thats why he can't cast spell, because he can't stop n' cast. Do you guys know how I could do that? Sure tehre would be the option on creating a base with ability there... But Id like that my unit cast while moving.
Is this possible???

Second question, how can i lock camera position for a duration of time?

Thnak you for help!
10-13-2006, 08:54 PM#4
aidan_124
If you decrease the unit cast time to 0.00 seconds i think he should move and cast at the same time...Or he would stop for 0.01 seconds cast and carry on...i think.

I can't help with the second question sorry.
10-13-2006, 10:15 PM#5
Zamoune
I checked all over again my ability.
Stats - Casting Time 0.00
Stats - Cast Range 20000 (to test)
Then to be sure i created a hero adding my custon ability, and he casted it without problem, so I guess proble mis really that the unit need t stop to cast
:S Any clue? loll
10-14-2006, 06:26 AM#6
zeroXD
Units cant cast spells while being moved via triggers, unless you are using channel,(possibly have to use no target) and propably "begins casting an ability" event.

EDIT: And btw, please edit your first post and use [trigger] tags...
10-14-2006, 09:25 AM#7
BertTheJasser
Use SetUnitX/Y , so units have still the option to get and follow orders (not availiable in GUI)
10-16-2006, 01:51 AM#8
Zamoune
Im giving up for the unit casting while moving, cuz i don't know anything else than GUI.
I'm gonna fix my problem by creating a base with spells there.
Thank you for help.
10-16-2006, 02:25 AM#9
CrashLemon
Unfortunatly, you can't use the [Picked Unit] variable more than 1 time in a [Pick Every Unit] trigger. Why? Probably because it is a temporary variable that set himself to 'null' when used more than 1 time. It can be your problem.