HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Help] Special Effects With Height

04-15-2008, 01:20 AM#1
Tide-Arc Ephemera
Yeah, simple problem. How can I create special effects with height? I don't care if it's GUI or Jass, but if it's in Jass a small walk through of it would be nice.

vJass or any non-vanilla Jass WILL cause problems to me, though.

Thanks ahead.

This "request" sounds familiar to me, so feel free to tell me... I did search but I couldn't find anything with my answer.
04-15-2008, 01:32 AM#2
moyack
Download the global dummy unit made by vexorian: You can find it in the shrapnade spell made by Rising Dusk

Create a dummy unit and then assign the dummy model for it

Create a effect in the origin of the unit.

and then set fly height to the model.
04-15-2008, 01:47 AM#3
Tide-Arc Ephemera
Well... that may not be the best option for me as I'm generating roughly 200 effects or something... I thought in the JassVault (or whatever it's called, I forgot) they had something which used a dummy doodad method.

Or is Vexorian's dummy model the only real solution here...?
04-15-2008, 01:49 AM#4
Rising_Dusk
Quote:
Originally Posted by Tide-Arc-Ephemera
Well... that may not be the best option for me as I'm generating roughly 200 effects or something... I thought in the JassVault (or whatever it's called, I forgot) they had something which used a dummy doodad method.
You can do it with elevators, but it's a lamer method than using dummy units with attached effects.
04-15-2008, 02:48 AM#5
Vexorian
Quote:
roughly 200 effects
Why do you think doodads would be more efficient than units?

200 is quite a low number anyways.
04-15-2008, 02:58 AM#6
PurgeandFire111
You can either do it the way moyack said, or just do something like this:
http://wc3jass.com/viewtopic.php?t=2472&start=0
04-15-2008, 07:08 AM#7
Tide-Arc Ephemera
Quote:
Originally Posted by PurgeandFire111
You can either do it the way moyack said, or just do something like this:
http://wc3jass.com/viewtopic.php?t=2472&start=0

That was the one I was looking for, I have it bookmarked to keep track of it.

On other notes...
+Rep to everyone who helped.

EDIT!
Collapse JASS:
function AddSpecialEffectZ takes string path, real x, real y, real z returns effect
    local destructable d = CreateDestructableZ( 'OTip', x, y, z, 0.00, 1, 0 )
    set bj_lastCreatedEffect = AddSpecialEffect( path, x, y )
    call RemoveDestructable( d )
    set d = null
    return bj_lastCreatedEffect
endfunction
If I were to call this through GUI, would I open a custom script call and then do "call AddSpecialEffectZ(theeffectiwanthere.mdx, x, y, z)"?
04-15-2008, 09:20 AM#8
Malf
Trigger:
Events
Conditions
Collapse Actions
Custom script: call AddSpecialEffectZ(theeffectiwanthere.mdx, x, y, z)

Btw, if the effect was attached to the destructible, wouldn't it go away when the destructible is destroyed?
04-15-2008, 09:54 AM#9
Tide-Arc Ephemera
call RemoveDestructable( d ) orly?
04-15-2008, 01:07 PM#10
Malf
Nevermind, it wasn't creating an effect attached to destructible, I am having weird thoughts lately
04-17-2008, 12:34 PM#11
MaD[Lion]
use dummy model by infrane. u can set it's pitch (vertical facing angle)
04-17-2008, 11:00 PM#12
PurgeandFire111
Quote:
Originally Posted by MaD[Lion]
use dummy model by infrane. u can set it's pitch (vertical facing angle)

Is there a difference efficiency-wise?