- Joined
- Nov 20, 2007
- Messages
- 660
What's better to use ? a special effect or an dummy (unit)
Exemple : War Stomp effect
Exemple : War Stomp effect
??Use a special effect if it gives you all you need.
the dummy unit will have the wrong facing angle
Enter your WE and check that even with facing speed set to 3 (in object editor) to change the facing degree up to 180 unit will require about 0.4 sec time.a simple GetUnitFacing(caster) will fix that ...
local unit u = CreateUnit(GetTriggerPlayer(), 'hpea', GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()))
Now test this refering to dummy that already exists with 0.1 turn rate ^^. From what I've tested it's about 0.7 - 0.8 with such low value.I tested and even set the turn rate to 0.1 and use an arrow model "Abilities\Weapons\Banditmissile\Banditmissile.mdl" and "Abilities\Weapons\GuardTowerMissile\GuardTowerMissile.mdl" and use this...
JASS:local unit u = CreateUnit(GetTriggerPlayer(), 'hpea', GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()))
well, the dummy arrow unit still faces the facing of the caster...