Spiralling projectiles?

HalosNTariff

New Member
Reaction score
13
Hi, you might not have noticed but computers are not my forté, so my triggering is something of a learning process.

Anyway I'm wondering how do people make projectiles or units travel in a spiral? Say I had a point targeted AoE with 500 diameter and I wanted the 'crushing wave' projectile to spiral outwards from the centre to the edge dealing damage to any unit it touched, like a circular shockwave.

Is this possible using GUI? If so could someone give me a rundown of how to do it?

Thanks in advance.
 

artix123

New Member
Reaction score
4
Create the dummy projectile as a unit,

Set variables:
CastPoint = point variable
TempPoint = point variable
Angle = Real variable
Distance = Real Variable
DamagedGroup = Unit Group variable

Set CastPoint = Target point of ability being cast

Every 0.05 seconds of game time
Set Angle = Angle + 2.50
Set Distance = Distance + 10.00
Move dummy unit (instantly) to CastPoint offset by Distance towards Angle degrees
Set TempPoint = Position of dummy unit
Pick all units in range of 150 of TempPoint
IF (picked unit) is not in DamagedGroup
Order (owner of casting unit) to damage (picked unit), dealing X damage of blah blah blah
Add (picked unit) to DamagedGroup

Then remove the unit when the time after cast = time required for dummy unit to reach 250 radius.
Destroy DamagedGroup.

Should be something like that..
 

HalosNTariff

New Member
Reaction score
13
Hmm, I'm a little stuck, I can get a unit to spawn when the spell is cast:


Code:
 Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Tsunami 
    Actions
        Set TsunamiCastPoint = (Target point of ability being cast)
        Unit - Create 1 Tsunami Dummy for (Owner of (Casting unit)) at TsunamiCastPoint facing Default building facing degrees
        Set TsunamiDummy = (Last created unit)
        Trigger - Turn on Tsunami effect 2 <gen>


But I can't get it to move in a spiral:

Code:
Events
        Time - Every 0.50 seconds of game time
    Conditions
    Actions
        Set TsunamiAngle = (TsunamiAngle + 2.50)
        Set TsunamiDistance = (TsunamiDistance + 10.00)
        Unit - Move TsunamiDummy instantly to (TsunamiCastPoint offset by TsunamiDistance towards TsunamiAngle degrees)
        Set TsunamiTempPoint = (Position of TsunamiDummy)


What am I missing?
 

Emu.Man00

New Member
Reaction score
41
Shouldn't tsunamiDistance be getting smaller, not bigger?

and 5 degrees per second will take 72 seconds to make a full circle.
 

artix123

New Member
Reaction score
4
HalosNTariff said:
spiral outwards

That's why the distance gets bigger?

And it's not every 0.5 seconds, it's every 0.05, you might wanna change the numbers to match your 500 range. As what Emu.Man00 has said 5 degrees per second will take 72 seconds to make a full circle lol
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top