HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to make an object spin around a unit?

03-08-2006, 01:04 PM#1
Fulla
Ok so far I've got this>

Create a unit with the sphere model at position of a unit with an ofset.

Now I want to make it spin.
Would I have to say e.g. create it at 50 east of unit.
Order it to move to 50 north, then order it to move to 50 west then 50 south in a constant loop?

Vile told me to order it to move at an angle, I have no idea how to do this?
03-08-2006, 01:09 PM#2
Chuckle_Brother
I assume you mean you want it to orbit.

Well if that is the case you just move the unit to an offset of a point every 0.0X seconds, and contantly increment the angle it is offset by.


Note: Once an angle becomes greater than 360 its all good, 450 degrees is in reality the same as 90 degrees
03-08-2006, 01:31 PM#3
Whitehorn
I could make a model if you need it permanent?

Like 1-2KB.
03-08-2006, 01:46 PM#4
Fulla
How do you make a unit move with an angel thou?

Code:
Unit - Order (Last created unit) to Move To (((Position of deecredsilenceunit) offset by (-500.00, 0.00)) offset by 0.00 towards 270.00 degrees)

I tried that, sphere just moved in a straight line
I tried many differnet angels to experiment but always just a straight line
03-08-2006, 01:51 PM#5
Chuckle_Brother
Do an instant move.
03-08-2006, 02:10 PM#6
Fulla
Oh didnt c your post whitehorn.
Yea if you can it would be much appreciated
Heres what they look like

Gravity Bullets
ZoomZoomZoomZoom
03-08-2006, 02:29 PM#7
Whitehorn
White globes?
03-08-2006, 02:54 PM#8
Fulla
yup with black borders
03-08-2006, 03:25 PM#9
Whitehorn
OK. So am I making this orbit a point, or 'spin' on the spot?
03-08-2006, 03:52 PM#10
Drakim
when they are talking about changing angle they talk about when you are setting the globe (position) you use the polar offset. With it you set the orb to be x distance from the unit with y angle. The trick is looping this and adding one to the y, creating a prosses like this:
50 away form the unit at angle 0
50 away form the unit at angle 1
50 away form the unit at angle 2
up to
50 away form the unit at angle 360

This will create the effect that the orb is orbiting around the unit.
03-08-2006, 04:05 PM#11
Fulla
Quote:
Originally Posted by Whitehorn
OK. So am I making this orbit a point, or 'spin' on the spot?

Perhaps I should explain the two spell, in which I need them for.
If I manage to do them, the'll be for the spell contest.

Gravity - Bullets
Channel - targets a point or unit
Once cast, creates 1 sphere that orbits caster per second, for up to a maximum of 10 seconds/spheres.
Then the spheres are shot at very high velocity at targeted point. On contact with a unit they dissipate dealing (level of ability x 30) damage. Each bullet has a 25% chance to stun.
The bullets have a maximum range of 2000 + (level of ability x 500) at which they dissipate if no contact is made.

Gravity - Silence
Creates (level of ability x 1) spheres, that circle target enemy unit. Each sphere in turn will prevent the targeted unit from casting a spell and then dissipate. The spheres dissipate in time and are dispellable.

So just a sphere that orbits a unit.
Ive been experimenting with buffs and the bloodmages sphere ability it seems to work ok but it only seems to work on bloodmage

also thx Drakum, now I understand :-)
03-08-2006, 04:39 PM#12
Whitehorn
I believe the Bloodmage has an animated attachment point.
03-08-2006, 04:45 PM#13
Fulla
hmm, would your model be able to orbit a unit?

EDIT: Ah I found a way with lightning orb effect

Code:
Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\Items\AIlb\AIlbTarget.mdl
03-08-2006, 05:06 PM#14
Whitehorn
Example...

Zoom (requires log in)
Attached Images
File type: jpgorbiters.jpg (32.6 KB)
Attached Files
File type: w3xoribter-test.w3x (15.4 KB)
03-08-2006, 05:11 PM#15
Fulla
great job, thx

Hehe, a crazy example :-)
Zoom