• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

set position of specialeffect

Status
Not open for further replies.
Level 12
Joined
Jan 13, 2008
Messages
559
GUI also has "Create special effect at point", which effectively creates a special effect at the location of your choice.
If you want to move a special effect, then that is not possible: either re-create it, or use a dummy unit.

I know this. When i create a special effect at certain point then I have to move it via trigger which isn't my goal.

I want to create a special effect which shows up at the chest region of a unit but a little bit more higher.
 
i believe there is custom script to set the z point of special effects. but z points can cause desyncs if i remember correctly. doesnt seem to be one just checked

i would use ap0calypse's suggestion create a dummy flying unit at position of the target and attach it to the dummy units chest then just change the fly height of the dummy unit till u get the desired height. note: u will have to trigger the dummy units movement every 1 second custom script: call SetUnitX( dummyUnit, GetUnitX( target)) and call SetUnitY( dummyUnit, GetUnitY( target))

  • custom script: call SetUnitX( dummyUnit, GetUnitX( target))
  • custom script: call SetUnitY( dummyUnit, GetUnitY( target))
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
there is no way to manipulate Special's effect Z, it is always created at the ground in case of Point creation, or at the bound unit part

also moving it every 1 second can be slow, I would suggest like .03 to .3

maybe if u crate a floating platform with CreateDestructableZ and create special effect after that thyen maybe it will be in air, atleast trackable work that way (and ofc remove the floating platform after u create the special effect/trackable)
 
You could try this :
http://www.hiveworkshop.com/forums/spells-569/particle-v1-3-a-230079/?prev=status=a&u=Almia

@edo494
False.
Though you can't change its height.
You can create special effect with height.
Credits to PurgeAndFire11's secret library i found in the other site(wc3jass.com)
JASS:
library SpecialEffectZ /* v1.0.0.0 
*******************************************************************
*
*    Allows you to add a special effect with a Z value.
*
*******************************************************************
*
*    function AddSpecialEffectZ takes string model, real x, real y, real z returns effect
*
*******************************************************************/
 
    globals
        private destructable platform
        private effect zEffect
    endglobals
 
    function AddSpecialEffectZ takes string model, real x, real y, real z returns effect
        set platform = CreateDestructableZ('OTip', x, y, z, 0, 1, 0)
        set zEffect = AddSpecialEffect(model, x, y)
        call RemoveDestructable(platform)
        return zEffect
    endfunction
 
endlibrary


'OTip' makes it possible. It even works on Trackables.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
what I said is not wrong, maybe I wrote it differently from what I meant

I meant that there is no native function to do that, never said it is impossible(hope so)

just from curiosity, what actually is OTip?

I said there is no way to manipulate it when its created at point because even if you change the height of the destructable, it will not change the height of the effect itself
I admit that the "its always created at the ground in case of point" is wrong tho
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Don't worry about that, edo :D. You are indeed correct if you phrase it like that (your other post could indeed be interpreted incorrectly).

'OTip' is the raw ID of the destructable "Invisible Platform" if I'm not mistaken.
Special effects will be created on that platform and thus appear to be flying.
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
You could try this :
http://www.hiveworkshop.com/forums/spells-569/particle-v1-3-a-230079/?prev=status=a&u=Almia

@edo494
False.
Though you can't change its height.
You can create special effect with height.
Credits to PurgeAndFire11's secret library i found in the other site(wc3jass.com)
JASS:
library SpecialEffectZ /* v1.0.0.0 
*******************************************************************
*
*    Allows you to add a special effect with a Z value.
*
*******************************************************************
*
*    function AddSpecialEffectZ takes string model, real x, real y, real z returns effect
*
*******************************************************************/
 
    globals
        private destructable platform
        private effect zEffect
    endglobals
 
    function AddSpecialEffectZ takes string model, real x, real y, real z returns effect
        set platform = CreateDestructableZ('OTip', x, y, z, 0, 1, 0)
        set zEffect = AddSpecialEffect(model, x, y)
        call RemoveDestructable(platform)
        return zEffect
    endfunction
 
endlibrary


'OTip' makes it possible. It even works on Trackables.

right, invisble platform not floating platform :D
 
Status
Not open for further replies.
Top