• 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.

How to make unit dig in ground.

Status
Not open for further replies.
Level 4
Joined
Oct 28, 2012
Messages
82
Just like a tittle.
More info is, I wanna make a trigger for a unit to rise form a ground.

-- edit --

First it will fly (backward) into ground then rise to the sky.
 
Last edited:
Level 30
Joined
Nov 29, 2012
Messages
6,637
How about Burrow ability from Crypt Fiend ability or mimic how its been used. When an ability is cast perform an SFX at that position that will make the unit casting unseenable then hide unit then if Rise from ground, put an SFX or Special Effect again hiding the position where the casting unit is then after the SFX, unhide unit.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
The only way, that I can think of that would look right, is adding a skeleton birth animation to the model. (The rising from the ground animation). It's hard to guess what exactly the thread starter needs, that's why I told the thread starter to include more information.
 
Level 4
Joined
Oct 28, 2012
Messages
82
Sorry guy

I'm sorry. That time I post is 12pm at my place, so just like, sleep.
Sorry about question too.
Explain:
First it will fly (backward) into ground then rise to the sky.
Yeah. That's it.
-- edit the 1st post too.:ogre_kawaii:
 
Level 4
Joined
Oct 28, 2012
Messages
82
I use this to build a gate. It will move into ground when someone go near it. But it just stand there. I dont know what to do :/
 

Rheiko

Spell Reviewer
Level 25
Joined
Aug 27, 2013
Messages
4,121
now i understand what he means
yeah, negative value won't work from trigger editor and can only be done with OE
i guess i misread your post

If there isn't another basic solution for this, can someone maybe make a basic tutorial showing how to decrease the default height of the model itself?
i thought it was increase, lol
sorry about that
 
Level 4
Joined
Oct 28, 2012
Messages
82
Seem it not have any solution

Rheiko:
yeah, negative value won't work from trigger editor and can only be done with OE

It's ok now. I work on another effect, it look good then.
Thank for your help, everyone.
 
Level 20
Joined
Aug 13, 2013
Messages
1,696
You can decrease height of the unit if the unit is greater than 1 fly height but not 0, you can decrease that in the trigger by adding crow form ability to the unit and remove it or if the unit is movement - flying. You can get negative values in JASS line.
  • Example
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- --------
      • -------- Contruct First Method - Enabling Fly Movement. --------
      • Custom script: if UnitAddAbility( GetTriggerUnit ( ), 'Amrf' ) and UnitRemoveAbility( GetTriggerUnit ( ), 'Amrf' ) then
      • Custom script: endif
      • -------- --------
      • -------- Negative Value ( Custom Script ) or ( Jass Line ) --------
      • Custom script: set udg_MY_NEGATIVE_HEIGHT_VALUE = -100.00
      • -------- --------
      • -------- Action --------
      • Animation - Change (Triggering unit) flying height to MY_NEGATIVE_HEIGHT_VALUE at 0.00
      • -------- --------
Or you can use integer in JASS and setting the unit fly height accessible in JASS.
 
^The hole entire point of this thread has been made to show that any units height can't become negative through triggers.
With it being typed into the native(action) that is through triggers.

Actually if you set the units fly height to a negative by default it would work and when you try to set it to the same height with the native to set fly height it would be set to 0.01 fly height.
 
Level 4
Joined
Oct 28, 2012
Messages
82
But I want to set it negative. :(
Any way, I find the way, cause I can edit height of unit, so I create a lot of unit and set height (-200, -180 , -160 . . . ) and keep create it in a short time, it look like a unit is flying from the ground.
 
Level 7
Joined
Sep 11, 2013
Messages
220
Just like a tittle.
More info is, I wanna make a trigger for a unit to rise form a ground.

-- edit --

First it will fly (backward) into ground then rise to the sky.

Hmmm. I never had problems with models going underground. I use triggers. And since a unit cannot go below 0. I changed its height in through MDLVIS, or through Model Editor, but sometimes it screws up the animations when I use Model Editor. I change the height of a model in MDLVIS to negative, so in the WE its height would still be 0 but would be below the ground. You can increase it and decrease it through triggers.
 
But I want to set it negative. :(
Any way, I find the way, cause I can edit height of unit, so I create a lot of unit and set height (-200, -180 , -160 . . . ) and keep create it in a short time, it look like a unit is flying from the ground.
Don't create too many units. Have a looping trigger and periodically change the unit height.
 
Level 4
Joined
Oct 28, 2012
Messages
82
Don't create too many units. Have a looping trigger and periodically change the unit height.

Too many unit cause loading time longer, right ?
And, I

Hmmm. I never had problems with models going underground. I use triggers. And since a unit cannot go below 0. I changed its height in through MDLVIS, or through Model Editor, but sometimes it screws up the animations when I use Model Editor. I change the height of a model in MDLVIS to negative, so in the WE its height would still be 0 but would be below the ground. You can increase it and decrease it through triggers.
This is the best solution I ever had, however, how to use it ? ( there a pic with this post )
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    118.2 KB · Views: 86
Level 7
Joined
Sep 11, 2013
Messages
220
Too many unit cause loading time longer, right ?
And, I


This is the best solution I ever had, however, how to use it ? ( there a pic with this post )

Creating units can cause leaks, specially if in a point, but you can stop them by using a variable for the points where they are created, then remove it. also remove the dummy units when they die.


Ok then, First you move the model, not the bones yet. When you open your model in MDLVIS, click the "Perspective" then set it to right. Then your right side, check all boxes, in the Geosets. After that, select all points (Just like in your desktop, if you wanna delete many stuff (Click and Drag)). Then move click the "Move", its located at your right side (That Hand Icon). Then you will see two arrows, one pointing up and other pointing right. Hold the arrow pointing right, then move it downwards (Be sure to move your model under the line).

For the bones, click "Modules" then select "Sequence Editor" then you will see 3 grey buttons (Bones. Anims. Movement), then click "Bones", then check the "Multiselect" box (Located at the right), then zoom out until you can only see one bone (Those Square things). Then once you've selected the bones (All square things would be colored red when selected, i think), zoom back in. Then once again click the "Move" and move the bones to your model.

Thats how I did it, but I think there is a better and faster way, Im not really good with it, I just learned about MDLVIS one week ago.

I hope this helps you :)

If you still have a problem, just send me that model or link, then I would do it myself.
 
Level 4
Joined
Oct 28, 2012
Messages
82
My case is I create a lot of units in Object Editor ( not in game ) and it make loading time longer ( because I try to import all that objects to a new map ). Just think I have to delete every unit I dont use now, make me tired.
-
Thank for the tut, TOM, I try this right now :D
 
Level 4
Joined
Oct 28, 2012
Messages
82
LOL, what have I done, in "model step" I do very good, but the bone =))
-
btw, please make it -500, thank :)
 

Attachments

  • a.jpg
    a.jpg
    52.3 KB · Views: 83
  • Pyramide.rar
    1.2 KB · Views: 30
Status
Not open for further replies.
Top