How can you change unit to flying via triggers?

Danage

New Member
Reaction score
0
I would like to know how to change a unit to flying without changeing the unit, like just change the unit from ground type to flying type.

I don't want it to change unit because the unit is moving at the time it happens and it makes it look wrong... like the unit lags or something...

Thanks guys
 

Nerfpl

New Member
Reaction score
53
You can try adding behavior which will allow unit to move as flyer and modify height if need
 

Danage

New Member
Reaction score
0
You can try adding behavior which will allow unit to move as flyer and modify height if need

You can do that? Give a behavior to a ground unit and it lets it move over cliffs? Could you please tell me how to make that behavior?
 

Dave312

Censored for your safe viewing
Reaction score
269
Unfortunately there is no way to change the mover of a unit in-game, so you can't use a behaviour to turn the unit into a flyer. The alternative is to create a duplicate unit with a mover which makes it a flyers, and then use an ability to morph between the two units as required.
 

Danage

New Member
Reaction score
0
Unfortunately there is no way to change the mover of a unit in-game, so you can't use a behaviour to turn the unit into a flyer. The alternative is to create a duplicate unit with a mover which makes it a flyers, and then use an ability to morph between the two units as required.

Can you get the morph ability to change the unit instantly while the unit is on the move so there is no pause? If so how do I make this morph ability? Like what flags and stuff to get that going, thanks.
 

Danage

New Member
Reaction score
0
I could still use some help, and is there any way to set a variable up with multiple initial values when using indexing?
 

Danage

New Member
Reaction score
0
Events
Unit - Any Unit uses Raynor - Toss Grenade at Generic1 - Any stage (Ignore shared abilities)
Local Variables
Conditions
Actions
UI - Display "Tosses a grenade" for (All players) to Subtitle area

For some reason it displays the message 7 times when I cast the ability, why on earth is it doing that? It's acting as if I'm casting the ability 7 times when infact I'm only casting it once...
 

celerisk

When Zerg floweth, life is good
Reaction score
62
"Any stage" looks like a potential problem.
Off the top of my head, I'd go with Approach, Prepare, Cast, Channel and End as possible stages (did I miss any?).
As such, this event happens somewhat more often than just once.



> is there any way to set a variable up with multiple initial values when using indexing?

Probably. Though, what you mean with "using indexing"?
 

Dave312

Censored for your safe viewing
Reaction score
269
Can you get the morph ability to change the unit instantly while the unit is on the move so there is no pause? If so how do I make this morph ability? Like what flags and stuff to get that going, thanks.
Sorry I just haven't had a chance to go through and find all the things you need to get this working.

For some reason it displays the message 7 times when I cast the ability, why on earth is it doing that? It's acting as if I'm casting the ability 7 times when infact I'm only casting it once...
Abilities are divided up in multiple stages. Using "Any Stage" means the trigger will activate when any of the stages is completed. The ability you are using has 7 stages, hence you get the message 7 times despite the ability being only cast once.

I could still use some help, and is there any way to set a variable up with multiple initial values when using indexing?
You can set the default value for all the indices's, but not for each index. You will have to run a trigger with the "Set Variable" action and set it that way.
 

Danage

New Member
Reaction score
0
"Any stage" looks like a potential problem.
Off the top of my head, I'd go with Approach, Prepare, Cast, Channel and End as possible stages (did I miss any?).
As such, this event happens somewhat more often than just once.

That makes so much sense... I was way off, thank you.

Sorry I just haven't had a chance to go through and find all the things you need to get this working.


Abilities are divided up in multiple stages. Using "Any Stage" means the trigger will activate when any of the stages is completed. The ability you are using has 7 stages, hence you get the message 7 times despite the ability being only cast once.


You can set the default value for all the indices's, but not for each index. You will have to run a trigger with the "Set Variable" action and set it that way.

Damn, I was hopeing I could set multiple initial values in a single variable... I guess the only way is to add them to the variables index after the games loaded, thank you.
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Unfortunately there is no way to change the mover of a unit in-game, so you can't use a behaviour to turn the unit into a flyer. The alternative is to create a duplicate unit with a mover which makes it a flyers, and then use an ability to morph between the two units as required.

I am quite sure you are wrong. I can't test it out now since I am at work but isn't the plane delta what you want to change in the Behavior - Modification? Otherwise I think the behavior can modify the mover, but I might be wrong on that part as well.
 

Dave312

Censored for your safe viewing
Reaction score
269
I am quite sure you are wrong. I can't test it out now since I am at work but isn't the plane delta what you want to change in the Behavior - Modification? Otherwise I think the behavior can modify the mover, but I might be wrong on that part as well.

That is what I thought. But when I looked into it, I found a thread over at sc2mapster where they found the plane delta only affected the targeting plane of the unit. I might try and test it out myself.

I also tried looking into modifying the mover with a behaviour, but was unable to find a way to do it.
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Ah, I was quite sure it would work. I've used it for custom graviton beams but since the unit is incapable of moving, i've just assumed it would change the mover as well.

Upgrades can change certain things about most things. What about a temporary upgrade or something?
 

Dave312

Censored for your safe viewing
Reaction score
269
Wouldn't the upgrade affect every unit of that type for that player?
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Yes, that's why I wasn't certain. It depends on the situation. If there's only one unit that needs to fly for each player, it would work.
 

Dave312

Censored for your safe viewing
Reaction score
269
That is what I thought. But when I looked into it, I found a thread over at sc2mapster where they found the plane delta only affected the targeting plane of the unit. I might try and test it out myself.
I've tested this and indeed this is correct. The plane delta only affects the targeting plane and does not allow units to move as an air unit.


EDIT:
I have finally managed to come up with a solution for this by morphing the unit into a new unit. Here is how to do it.
1) Duplicate your unit and change the mover to a flyer.
2) Create a new button which will be used for issuing the command.
3) Create a new ability of the type Morph and set these values:
- Set the Execute button to the button previously created under the Ability - Commands + property
- Open up the Ability - Info property, right-click then Add... and select your unit with the flyer mover
- Open up the Stats - Flags property and check Ignore Facing
4) Create a new effect of the type Issue Order and set these values:
- Set the Ability - Ability property to the morph ability you just created.
- Open up the Effect - Command Flags property and check Preempt
- Set the Unit - Unit + property to Caster (just the value part)
5) Now create another new ability of the type Effect - Instant and set these values:
- Set the Execute button to the button previously created under the Ability - Commands + property
- Set the Effect - Effect property to the issue order effect you have just created.
- Open up the Stats - Flags property and check Transient
6) Go to your unit (the one with the ground mover) and add the two abilities you have just created.
7) Now go into the command card and select an empty slot, add the button you previously created and set these values on it:
- Command Type to Ability Command
- Ability to the Issue Order ability you created
- Ability Command to the button you created (should be the only option to choose from)

And that's it. You can repeat the above process to and change the morphing unit to get the unit go back to the ground mover.
 

Dave312

Censored for your safe viewing
Reaction score
269
If you use just a straight morphing ability, the unit will stop. However by giving it an ability which orders it to use the morph ability, you can use the transient property which will make it continue what it is doing. As such, the unit will morph and continue on it's way like nothing ever happened.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1

      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