• 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.

[General] How does one obtain a spinning effect?

Status
Not open for further replies.
Level 5
Joined
Feb 17, 2011
Messages
95
Could you clarify a bit. You want 2 units to spin around caster? If so maybe something like this( and clear leaks):
  • Untitled Trigger 001
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit - Move (SPININGUNIT1) instantly to ((Position of CASTER) offset by 256.00 towards Angle degrees), facing Default building facing degrees
      • Unit - Move (SPININGUNIT2) instantly to ((Position of CASTER) offset by 256.00 towards (Angle + 180.00) degrees), facing Default building facing degrees
      • Set Angle = (Angle + 1.00)
 
Last edited:
Level 13
Joined
Mar 24, 2013
Messages
1,105
You are trying to get 2 units to orbit a single unit while the single unit moves?

I'll give you some basic directions. Lets call the 2 orbitals X and Y and the unit they will rotate around unit A.

So you need get the location/coordinates (whichever you prefer) of A, then you need to periodically(.03 should be good) set the position of X and Y to the position of A offset by however much you like, then in/decrease the angle for X and Y as appropriate to get them to go in opposite directions. I made something that might help you visualize this a while ago I'll see if I can dig it up.

Edit: Here's the test map of it. It shows how to get a single unit to spin around another

http://www.hiveworkshop.com/forums/...803-kawaii-spell-workshop-guardian-sphere.w3x
 
Status
Not open for further replies.
Top