I have a map with heroes and i was creating a new feature where you can put your heroes in a car and they will be able to perform their regular attack from the vehicle they are traveling in, sort of like a drive by shooting with your heroes. Anyhow, i have made it so that the units only attack when the vehicle is standing still with the redirect ability but... is there a way to make it possible to have the cargo units attack while your moving the vehicle?? I couldn't find anything in the data editor, any suggestions how to make this work?
i dont understand.. you mean like, i take all the weapons from my different heroes in the game, add them to the vehicle and let the vehicle use the specified weapon whenever the hero with the same weapon enters the vehicle?
how is it going to know if there are like 6 of the same hero in the vehicle, it seems like you cannot add multiple weapons of the same type to a single unit?
if the hero isnt able to attack while moving outside the vehicle, how does this make them being able to attack while moving inside the vehicle? I would have to copy every heroes weapon and make every copy so that this weapon attacks while moving. and add this specific weapon copy to the vehicle whenever the hero with the specific type weapon that doesnt fire while moving enters the vehicle, and remove it when he leaves
it seems like a lot of work for such a simple thing. is this really how you want me to do it?
Hey, i think i did what you said and it works, but is this really the way to do it?
I made copies of the hero weapons and adjusted them so they work like tower defense kinda towers, then i made a trigger which adds and a trigger that removes the weapons from the vehicle if the specified unit type enters/leaves the vehicle see the triggers below:
Now if this is the correct way, the only thing i want to know is how to add multiple weapons of the same type to a single unit. and how do i let the unit use multiple weapons at the same time?
anyone?
Pls anyone who can help me?' I feel like im just doing random stuff some guy suggested and wasting a lot of time.. so would be awesome to get some feedback if its actually possible to do this the way im approaching.
yeh but the thing is, if i just add the bunker effect to the medivac it isnt able to attack while moving because the heroes weapons dont allow attack while moving this is why it wasnt working in the first place, as far as i know the bunker effect which makes cargo units being able to attack is he "redirect" ability and i already tried it this way, which isnt gonne work out as long as the cargo units inside havent got a weapon which can attack while moving. So this is why i had to make seperate weapons for the heroes which do allow attack while moving. And then there is the problem that for example if i put 2 heroes of the same type in there it will only give 1 weapon when it should give 2 times the weapon. And also when i have different heroes in there and it has multiple weapons of different types, it wont fire them at the same time, it will just use 1 weapon at a time.
Probably fixing that stuff with the triggers isnt the most efficient way but for now it is the only thing i could come up with and it does work.
However the problem of the vehicle not getting the same weapon multiple times and firing weapons at the same time still exists.
I might have come up with an idea now how to fix my 2 problems, im gonne try switching the heroes weapons while loading cargo(to the same weapon but which can attack while moving) and while unloading cargo(switch back to the original weapon) and have the cargo attack via redirect instead of adding the heroes weapon to the vehicle.
apparently weapons not being able to fire at the same time was because of me having linked cooldown checked at the weapon options field.
I now made it so that heroes switch weapon entering/leaving the vehicle, this fixes my problem with having multiple weapons of the same kind on a vehicle cause now the cargo is attacking individually not the vehicle.
only problem left is that the cargo wont attack while the vehicle is moving, strange thiing is, when i unload the unit without removing the vehicle weapon for the unit it is able to attack while moving, but when i put it in the vehicle it cant attack while the vehicle moves, only when it stands still. anyone?
Okay so i have searched a lot on the inet for people trying to fix this problem, the thing is that all of the posts eventually end with the author giving up like this one:
You're probably going to want to use the ability that lets Marines and Firebats shoot while inside a bunker. You should be able to modify that to work for other things to. (Note that by ability I mean the mechanic that works that. It could be a combination of several things in the Data Editor.
Oddly enough the ancient map destroy all monsters succeeded. They had a robot that could have units stored in it like a bunker and still shoot while it moved. This map was one of the first made for the game at least in europe.
It was a map for multiplayer on bnet, the one thor looking unit (second most explensive) could have units go inside it like the buildings and shoot from it as it moved. Also there are 3 different races in that map with different units.
Hey ppl,
I have a map with heroes and i was creating a new feature where you can put your heroes in a car and they will be able to perform their regular attack from the vehicle they are traveling in, sort of like a drive by shooting with your heroes. Anyhow, i have made it so that the units only attack when the vehicle is standing still with the redirect ability but... is there a way to make it possible to have the cargo units attack while your moving the vehicle?? I couldn't find anything in the data editor, any suggestions how to make this work?
thanks
Just copy those attack abilities/weapons to the vehicle and enable when hero enters it
@sigmapl: Go
i dont understand.. you mean like, i take all the weapons from my different heroes in the game, add them to the vehicle and let the vehicle use the specified weapon whenever the hero with the same weapon enters the vehicle?
how is it going to know if there are like 6 of the same hero in the vehicle, it seems like you cannot add multiple weapons of the same type to a single unit?
if the hero isnt able to attack while moving outside the vehicle, how does this make them being able to attack while moving inside the vehicle? I would have to copy every heroes weapon and make every copy so that this weapon attacks while moving. and add this specific weapon copy to the vehicle whenever the hero with the specific type weapon that doesnt fire while moving enters the vehicle, and remove it when he leaves
it seems like a lot of work for such a simple thing. is this really how you want me to do it?
@Rice87: Go
Hey, i think i did what you said and it works, but is this really the way to do it? I made copies of the hero weapons and adjusted them so they work like tower defense kinda towers, then i made a trigger which adds and a trigger that removes the weapons from the vehicle if the specified unit type enters/leaves the vehicle see the triggers below:
Now if this is the correct way, the only thing i want to know is how to add multiple weapons of the same type to a single unit. and how do i let the unit use multiple weapons at the same time? anyone?
@Rice87: Go
Pls anyone who can help me?' I feel like im just doing random stuff some guy suggested and wasting a lot of time.. so would be awesome to get some feedback if its actually possible to do this the way im approaching.
thanks
I can't give any exact answer but you can use "Bunker attack" to make that kind of effect.
If you add "Bunker attack" for Medivac you will propably get Medivac that can shoot while moving.
At least this idea whould be worth to test and improve.
Propably data is better way to solve this kind of thing than triggers.
@Terhonator: Go
yeh but the thing is, if i just add the bunker effect to the medivac it isnt able to attack while moving because the heroes weapons dont allow attack while moving this is why it wasnt working in the first place, as far as i know the bunker effect which makes cargo units being able to attack is he "redirect" ability and i already tried it this way, which isnt gonne work out as long as the cargo units inside havent got a weapon which can attack while moving. So this is why i had to make seperate weapons for the heroes which do allow attack while moving. And then there is the problem that for example if i put 2 heroes of the same type in there it will only give 1 weapon when it should give 2 times the weapon. And also when i have different heroes in there and it has multiple weapons of different types, it wont fire them at the same time, it will just use 1 weapon at a time.
Probably fixing that stuff with the triggers isnt the most efficient way but for now it is the only thing i could come up with and it does work. However the problem of the vehicle not getting the same weapon multiple times and firing weapons at the same time still exists.
I might have come up with an idea now how to fix my 2 problems, im gonne try switching the heroes weapons while loading cargo(to the same weapon but which can attack while moving) and while unloading cargo(switch back to the original weapon) and have the cargo attack via redirect instead of adding the heroes weapon to the vehicle.
apparently weapons not being able to fire at the same time was because of me having linked cooldown checked at the weapon options field.
I now made it so that heroes switch weapon entering/leaving the vehicle, this fixes my problem with having multiple weapons of the same kind on a vehicle cause now the cargo is attacking individually not the vehicle.
only problem left is that the cargo wont attack while the vehicle is moving, strange thiing is, when i unload the unit without removing the vehicle weapon for the unit it is able to attack while moving, but when i put it in the vehicle it cant attack while the vehicle moves, only when it stands still. anyone?
@Rice87: Go
Okay so i have searched a lot on the inet for people trying to fix this problem, the thing is that all of the posts eventually end with the author giving up like this one:
http://www.sc2mapster.com/forums/development/map-development/3208-movable-bunker/
So plssss someone tell me if it is even possible to achieve what im doing!?
You're probably going to want to use the ability that lets Marines and Firebats shoot while inside a bunker. You should be able to modify that to work for other things to. (Note that by ability I mean the mechanic that works that. It could be a combination of several things in the Data Editor.
Oddly enough the ancient map destroy all monsters succeeded. They had a robot that could have units stored in it like a bunker and still shoot while it moved. This map was one of the first made for the game at least in europe.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Hey i started the map on my own but couldnt find the unit your referring to, where do i find this unit on the map?
It was a map for multiplayer on bnet, the one thor looking unit (second most explensive) could have units go inside it like the buildings and shoot from it as it moved. Also there are 3 different races in that map with different units.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg