| 08-22-2003, 06:41 PM | #1 |
Is there a way to disable movement animation for a unit? I have a Mech unit, that Im giving an ability Tracked Movement. I want to set it up in triggers, that when a player learned that ability, the movement animation is disabled, and a siege engine model is attached to each foot (before you laugh, it actually looks pretty good with the models that Im mixing and the tint I have used). I have tested the way it looks using the unit-enters region function. So my questions: Can I disable movement animation? How do I do a check for the skill learned? When I use the hero ability learned trigger function it only lists the default abilities, but none of my custom ones. This one is kind of an afterthought, if I disable movement animation can I still have the special effect placed on the ground made by the unit? |
| 08-22-2003, 09:00 PM | #2 |
Can't anyone help me? |
| 08-22-2003, 09:12 PM | #3 |
Try this one: (made by PitzerMike) Code:
function MakeUnitSlide takes unit U, real Angle, real Distance returns nothing
local real Off = 5
local real Wait = 0.01
local integer Index = 0
local integer IndexEnd = 0
if ModuloReal(Distance,5) >= 2.5 then
set Distance = Distance + 5 - ModuloReal(Distance,5)
else
set Distance = Distance - ModuloReal(Distance,5)
endif
set Wait = 0.01
set IndexEnd = R2I(Distance / Off)
loop
exitwhen Index == IndexEnd
call SetUnitPositionLoc(U,PolarProjectionBJ(GetUnitLoc(U),Off,Angle))
call TriggerSleepAction(Wait)
set Index = Index + 1
endloop
endfunctionIt doesn't look very good, but it doesn't look very bad either... |
| 08-22-2003, 11:11 PM | #4 | |
Quote:
If you converted the ability type (hero/unit/item) it may appear at the bottom of the list. Special Effect - Create Special Effect At Point. |
