| 09-19-2004, 08:46 PM | #1 |
humm humm, you guys seen the RotD Prelude or what its called, the spell the witch king casts witch makes the spider blow back, im really wondering, how is that made? because the only move unit trigger, is instant move. but i want it to f.example get drawn to a unit, is it possible with triggering? you vexorian have to know that, u can do 'Everything' with triggers ![]() |
| 09-19-2004, 08:54 PM | #2 |
hell i can do everyone with triggers to cough cough JASS, CUSTOM SCRIPT SUCKS! cough cough i havnt needed to make any spells like that, but!!! i have an idea you could test, make it so the unit body position and head and all are facing the oposite direction they are being pulled, by doing something like position of casting unit - 180.00 that is my guess EDIT: the thing above would be like if you have the casting unit cast the spell, and you want the units to be dragged to him, once the body is locked facing oposite way, making the unit move torwards casting unit |
| 09-19-2004, 09:38 PM | #3 |
err. didnt understand much, il try to figure it out tomorrow. ;) if i make a spell, it would be like combining Taunt and War Stomp, (not like in dota, where the units are instantly teleported, that sux) |
| 09-20-2004, 12:29 AM | #4 |
do you want the units around the hero to be dragged torward the hero??? if that is what you want then do this, (this is a very ruff GUI trigger thingy) Event : A unit begins casting a spell. Condition: Spell equal to (name of spell) Actions: Set (Variable Region) centered on casting unit with size of (X,Y) wait .01 pick every unit within (Variable Region) and lock body facing Casting unit - 180. Order picked units to move to Casting unit. The lock body thing is under like animations in triggers. there are a bunch of them. so give that a shot |
| 09-20-2004, 02:40 AM | #5 |
It's looped instant move trigger |
| 09-20-2004, 12:54 PM | #6 |
Thanks Moose, rep for you. ![]() |
| 09-20-2004, 02:52 PM | #7 |
I dunno really how it is made exactly...but in World Editor Unlimited there is an advanced option (dont work to latest patch tho (dunno why RotD works to latest patch :P)) but...anyway it is WEU and is killed "Advanced - Unit - Slide unit". I guess it is like light_blade said: looped instant move..but it really does look like its really moving. |
| 09-20-2004, 09:18 PM | #8 |
never heerd of slide before in the WE or even in UMSWE, but anyways the way i have it is simplisted to do, just give it the illusion of sliding... |
| 09-21-2004, 12:50 AM | #9 |
trigActivate: set unitDrawnTo = whatever unit, ur casting unit perhaps add (whatever other units, maybe units in range) to unit group ugroupDrawn set nDrawTimeRemaining = 50 turn on trigPeriodicalDraw trigPeriodicalDraw: E - every 0.05 seconds A - if nDrawTimeRemaining <= 0 then turn off this trigger nDrawTimeRemaining-- pick all units in ugroupDrawn and move unit by 12.00 towards angle between picked unit and unitDrawnTo thats prob the most basic way of thinking of it, a better way would probably be to dynamically create separately running triggers for each object that is drawn in then destroying the triggers once its done |
| 09-21-2004, 08:53 AM | #10 |
well thanks guys, but i did the spell, with Flames Strike and A Dummy Unit which casts taunt ;P but thanks anyway il surely need it some other time.. ![]() |
| 09-22-2004, 11:05 PM | #11 |
did you use my idea? |
| 09-23-2004, 01:46 PM | #12 | |
Quote:
nope, cuz when i took the lock unit facing animation, only the chest and head is looking the right way, the feet move against the unit :P but it looks kinda cool anyway ^_^ |
