Warcraft III resources & community, 2003–2006 · archived

Turning Tower?

17 posts
#1

Turning Tower?

Im tryin to make some sort of maul game (completely from sratch), but I cant figure out how to make model to turn to face toward enemy (putting 0 in movement - speedbase prevents it from turning) . I could look at someone's map, but its protected.
#2
Only some models are able to turn once that is done. Use like ancients and KILLST4R turrets, because they are example of turning models
#3
or you can make a unit (footman...) a tower (to look like tower,change the model :wink: ) and make it non-movable
#4
eh, u sure bout that? this map has all unit that can turn.
#5
Making it non-movable will also prevent the unit from turning.

If you give the unit a Root ability that has the Data field to allow turning set to True, any unit with that Root ability will be able to turn to face its target. However, it will also be able to unroot and move around.

My traditional solution for that is to use the Root ability as the dummy for selling the tower. Change the Root ability's text and icon to look like a selling ability, and whenever the unit tries to unroot, remove it (with lag-o-rific special effects) and refund its value to its pwner.
#6

Re: Turning Tower?

haloboycsIm tryin to make some sort of maul game (completely from sratch), but I cant figure out how to make model to turn to face toward enemy (putting 0 in movement - speedbase prevents it from turning) . I could look at someone's map, but its protected.


i believe you could use the trigger that cause a unit's body part to face some place (i think) or give the unit 1 movemen speed, and then create a dummy to use a cripple or whtever that does 100% speed, and every second, so you can't dispell it
#7
The first idea doesn't work; tried it.

The second idea, unfortunately, also wouldn't work. First, you'd have to make the minimum movement speed 0, which it isn't, but even when you made it that, whenever a unit hits exactly 0 movement speed, it can no longer turn.

I had a working solution for a while that involved making the unit able to move, and creating a pathing blocker at the location of the unit so that it could only turn while attempting to move around, but I don't recommend that system at all.

If nothing else, if you don't want a Sell button (to use Root for), you can change the Root abilily to be a black icon with blank tooltips, and make a small trigger to cancel unroot whenever it's ordered to.
#8
thanks Panto, it works, i'll replace unroot for sell with trigger.
#9
well... i dont know how to replace uproot to a working sell button, i tried to come up with many different work around i can think of, none of them work...

wc3 doesnt count root/uproot as an "ability" or something. I tried "begin to cast ability", "channeling an ability", "finish casting ability" etc...

I hate dealing with trigger, anyone want to work on a few trigger for me? Then I can do the rest (copy and paste)
#10
I will see if I can re-create the system in a demo map as soon as I have time tomorrow, and post it.

Tomorrow's busy, though, so I can't promise it soon, but I won't forget.
#12
you may make that the "attacking unit" change his turning to the position of attacking unit... i think it will be work . Need a test
#13
VampireKB, like I suggested before, that doesn't work. The unit just can't be turned if it doesn't have a movement speed, and the only way to have them both keep a movement speed and be able to move (without the ugly blocker method I mentioned) is to use Root.

Anyway, I put together the demo map. It's actually kind of fun. It's here.

If you post questions in response to that thread, I'm more likely to see them than here. However, the map should explain all.
#14
thanks, but i cannot DL it anyway, it says:

ventuz, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


my account is already activited, still wont let me.
#15
If you have an account with wc3campaigns.com and you've logged in, you should have no problem accessing the file.

Give it another shot, and if it doesn't work out, I may host it elsewhere for you.