Unit Height Changing

Craigimus

New Member
Reaction score
0
I have a unit thats height is 300 and i want it to change to 0 or even -50 is there a trigger that if the unit used an ability i can make taht unit go from 300 down to 0 over time ? like make it go down slow.

(Mario entering a pipe) and (the same trigger but doing the opposite) (Mario exiting a pipe)

Thanks in advance.
 

cleeezzz

The Undead Ranger.
Reaction score
268
give the unit the storm crow ability and change the flying height with

Animation - Change (Triggering unit) flying height to 10.00 at 1.00
 

Craigimus

New Member
Reaction score
0
okies

Event
Unit - Casts ability
Condition
Ability being cast equal to storm crow
Action
Move Casting unit to pipe
Animation - Change etc etc
Play sound - Warp pipe
Wait - 2 seconds
Move Casting unit to - specific place

not all the right words but that sound about right?
 

cleeezzz

The Undead Ranger.
Reaction score
268
um not really. when you first start the map, add storm crow form ability to mario and then remove it (the flying effect will still be there)

then whenever you want it to go down or up, use the change unit height
 

Craigimus

New Member
Reaction score
0
i dont understand xD

map starts
add storm crow to mario
then remove storm crow from mario ? one after another ? doesnt that defeat the purpose?

or add the ability to be used then remove it so mario stays in crow form the whole time but changing the unit turned into the same unit as before?
 

cleeezzz

The Undead Ranger.
Reaction score
268
no it doesn't defeat the purpose, the reason you add the ability is, it allows you to change the height with (Animation - Change unit height), even though you remove it right after, the effect is permanent, you will still be able to change the height with the trigger.

call it a "bug", if you will
 

Craigimus

New Member
Reaction score
0
Cant seem to get the unit to move up or down in height.

also are you able to play a sound just to one player ? or do does it have to play to all players?
 

cleeezzz

The Undead Ranger.
Reaction score
268
post your trigger (the adding and removing storm crow, plus ur pipe trigger)
 

vypur85

Hibernate
Reaction score
803
Example:
Code:
Event
 A unit starts the effect of an ability
Condition
 Ability being cast Equal to YourAbility <-- [I]Any ability at all[/I]
Actions
 Unit - Add Storm Crow Form to (Triggering unit)
 Unit - Remove Storm Crow Form from (Triggering unit)
 Animation - Set (Triggering unit)'s flying height to 0.00 at rate of 50.00
 

Craigimus

New Member
Reaction score
0
Player Enter Pipes
Events
Unit - A unit Begins casting an ability
Conditions
Actions
-------- Pipe 2 RED --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Enter Pipe
(Red Pipe7 <gen> contains (Casting unit)) Equal to True
Then - Actions
Unit Group - Pick every unit in Pipe2 and do (Actions)
Loop - Actions
Unit - Add Storm Crow Form to (Triggering unit)
Unit - Remove Storm Crow Form from (Triggering unit)
Animation - Change (Triggering unit) flying height to 0.00 at 50.00
Sound - Play smb_pipe <gen>
Wait 1.00 seconds
Unit Group - Pick every unit in Pipe2 and do (Actions)
Loop - Actions
Unit - Move (Casting unit) instantly to (Position of (Picked unit))
Else - Actions



The wait 1 second isnt part of the unit group

all of it works but the changing height now.
 

Craigimus

New Member
Reaction score
0
i figured it out xD

the units minimum height was set at 100 i changed it to -1000 and now the unti can go up down and all around :D

thanks for your help though :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top