• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Dummy or Special Effect ?

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
Using SFX would be more efficient, why ?

As you create new units, more memory will be stored inside the game itself (unless you have recycling unit system, that's different)

Also, SFX can be cleared its leak, but unit ?
You can't delete dead/removed units
It stays in the memory of the game until the game ends

So, it is better to use SFX (in terms of efficiency.)
 
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...
 
Level 26
Joined
Mar 19, 2008
Messages
3,140
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...
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.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Create New Unit + Facing Angle = works perfectly

Recycling Unit (that unit is used constantly on the map (it means that the unit already has its initial facing angle (it is first hidden, if you want to use it, unhide it (with its initial facing angle exist) and use it))) + Facing Angle = Delay

But I still think you can change the hidden unit's angle before you unhide it (but I still think you can see the delay, no?)
 
Status
Not open for further replies.
Top