BRUTAL
I'm working
- Reaction score
- 118
Code:
Icey Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Ice Blast
Actions
Set IbCaster = (Casting unit)
Set IbCasterPos = (Position of IbCaster)
Unit - Create 1 IBUnit1 for (Owner of IbCaster) at IbCasterPos facing (Facing of IbCaster) degrees
Set IbUnitFace[0] = (Facing of (Last created unit))
Set IbUnitFace[1] = IbUnitFace[0]
Unit Group - Add (Last created unit) to IbUg
Code:
Icey Move
Events
Time - Every 0.02 seconds of game time
Conditions
(Number of units in IbUg) Greater than 0
Actions
Unit Group - Pick every unit in IbUg and do (Actions)
Loop - Actions
Game - Display to (All players) the text: (String((Facing of (Picked unit))))
Set IbUnitFace[1] = (IbUnitFace[1] + 1.00)
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 5.00 towards IbUnitFace[1] degrees), facing IbUnitFace[1] degrees
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
IbUnitFace[1] Equal to (IbUnitFace[0] + 50.00)
IbUnitFace[3] Equal to (IbUnitFace[0] + 50.00)
Then - Actions
Set IbUnitFace[2] = IbUnitFace[1]
Game - Display to (All players) the text: +50 yet?
Set IbUnitFace[2] = (IbUnitFace[2] - 1.00)
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 5.00 towards IbUnitFace[2] degrees), facing IbUnitFace[2] degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
IbUnitFace[2] Equal to (IbUnitFace[0] - 50.00)
Then - Actions
Set IbUnitFace[3] = IbUnitFace[2]
Game - Display to (All players) the text: -50 yet?
Set IbUnitFace[3] = (IbUnitFace[3] + 1.00)
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 5.00 towards IbUnitFace[1] degrees), facing IbUnitFace[1] degrees
Else - Actions
thats just an idea for an ability that came to me, i know it leaks and crap
but what its supposed to do is push a unit (moving it instantly with an offset) but the towards angle part changes making it look all sqiggely if you know what i mean lol
and its not working i tried lots of things
right now the unit just spins in a circle, before the units curved like it was supposed to, but then didnt curve the other way to give the sqiggely effect
anyways help please