• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Another SPell help

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
How to make a spell create more than one Dummy ?

For example: (My purpose, in the case) is to make an ability that creates a cone of multiple weapons (dummies) and move to the targeted point. Each weapon (dummy) deals damage.

But how to make more than one weapon and move them to the point in a cone AoE ?
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
As far as I understood from you, you mean you created one dummy (weapon -or- missile?) and then moved it to enemy?
Well instead of ( Unit - Create 1 Dummy at your point facing Your angle degrees) Change the number for example ( Unit - Create 1 Dummy ) And then create a group variable like this ( DummyGroup = Every Unit frmo Type -Dummy- )
Then Issue order the whole group to move towards enemy or just pick every unit in the group and move it ( Be Aware from leaks )

The trigger would be :) ( I am bad in calculation so I don't know if this will create a line spawning ( So after the move they will make a cone) or it won't, you may change some values. Good luck
  • Missile Launching
  • Events
    • Unit - A Unit starts the effect of an ability
  • Conditions
    • (Ability Being Cast) Equal to 'Missile Launcher'
  • Actions
    • Set MissileLauncherCaster = (Triggering Unit)
    • Set MissileLauncherPoint = (Point of MissileLauncherCaster)
    • Set MissileReal = (Facing of (MissileLauncherCaster) )
    • For Each Integer (Real to Integer(MissileReal2)) from -10 to 10 do the following :
      • - Loop
        • Set MissileSpawningPoint = ( MissileLauncherCaster offset by ( 30 x (MissileReal2) ) towards facing ( (MissileReal) + ( (MissleReal2) x 10 ) )
        • Unit - Create 1 MissileDummy at MissileSpawningPoint facing (MissileLauncheCaster facing angle) Degrees
    • Trigger - Turn on (Missile Moving)
 

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Yes, my problem is how to make more than 1 unit. Unit - Create 10 Units ... doesn't work. How to ?

Move it is easy
 
Status
Not open for further replies.
Top