HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Setting facing of a unit with 'Amov' Removed

10-07-2007, 08:36 PM#1
Szythe
The problem is basically stated in the title. Is it possible to change the facing angle of a unit which has had 'Amov' (Movement ability) removed? I also tried adding the ability back, but it doesn't seem to go back after it's been taken away.


EDIT: I solved the problem myself. Instead of removing 'Amov', i add and remove a disabled spellbook with the ancient protector root ability in it (with the "turn enabled" option checked). When the unit has the spellbook it looks as if 'Amov' is removed, but when the spellbook is taken away the unit returns to normal, allowing it to instantly turn.
10-07-2007, 09:02 PM#2
MaD[Lion]
instant turn u say... interesting, must try it
10-07-2007, 10:15 PM#3
iNfraNe
thats very interesting. Nice find.
10-07-2007, 11:31 PM#4
Toadcop
hmmm demo map... cause it doesnt work by me... and i can't remove the roots ability O_O
well a map would be cool ;)
10-07-2007, 11:54 PM#5
MaD[Lion]
ye demo map pls
10-08-2007, 12:27 AM#6
Pyrogasm
He put it in a disabled spellbook instead of adding/removing the ability outright.
10-08-2007, 12:44 AM#7
Toadcop
Quote:
He put it in a disabled spellbook instead of adding/removing the ability outright.
i have tried ALOT of different ways ^^ and no one works =) byw roots works also than they are disabled for the player and etc.
10-08-2007, 12:20 PM#8
blu_da_noob
If a unit has had 'Amov' removed, all you need to do is set the unit's turn speed (via the native) to any random number and it is able to turn again.
10-08-2007, 02:09 PM#9
MaD[Lion]
we want Instant turn here :D
10-08-2007, 02:20 PM#10
Toadcop
Quote:
we want Instant turn here :D
YEAH ! damn xD
we don't need any not moving turning shit =)

it's alomost the sense of my life to use instant turning units xD
10-08-2007, 03:29 PM#11
Ammorth
Best (lame) instant turn method right now:
Remove Unit
Recreate unit at required angle

What we want:
Change unit facing (instant) // with no removal of units.
10-08-2007, 04:12 PM#12
MaD[Lion]
i see.. damn and i was happy some time ago :(
10-08-2007, 07:24 PM#13
Pyrogasm
You can "clone" a unit by using some trick related to saving and then reloading a unit from gamecache. I when you load it you can specify a facing angle:
Quote:
A simple trick to clone units. It create a game cache, stores the unit, then restores the data where you want it to, 'cloning' it.
Trigger:
Clone
Events
Conditions
Collapse Actions
Game Cache - Create a game cache from Clone
Game Cache - Store (Last created unit) as Doner of Cloned Unit in (Last created game cache)
Game Cache - Restore Doner of Cloned Unit from (Last created game cache) for Player Whoever at Point facing 0.00
Game Cache - Clear (Last Created game Cache)
How it works:

The game cache is created, which can hold any type of value you wish in it.

All handles consist of four integers, w hether it be made of numbers or letters. We store the data into the game cache, which saves the DATA of the unit, not the unit itself.

In a way, we 'trick' the game into flushing the unit's data and restoring it. Thing is, the old unit is never removed, thus cloning the unit.

Using such a trick would reduce the bad-ness of simply creating a new unit to face the new angle, as the unit's stats would be exactly the same as before it was "cloned".
10-08-2007, 08:43 PM#14
MaD[Lion]
the problem is not the unit stat and all tat. the problem is tat the unit lose it current order ;) And must redo it everytime :P