The content of the article

Discovered by LazyLion, myself, and Developful.

Most functions of the workshop are (often unnecessarily) limited. However, with the Array Glitch, you can bypass most of these limits.

Putting an array where a function expects a number will cast the array to the first element of the array; this casting operation bypasses the limit.

For example:

``actions { Set Aim Speed(Event Player, 0); } ``

This will actually set the aim speed to 10 because of the unnecessary limit. But by wrapping the 0 into an array, you can actually set the aim speed to 0:

``actions { Set Aim Speed(Event Player, Array(0)); } ``

You can even invert the player's aim by setting a negative number!

``actions { Set Aim Speed(Event Player, Array(-100)); } ``

Below are the list of everything neat you can do with this glitch.

## Stopping time

``actions { Set Slow Motion(Array(0)); } ``

Now you can actually set slow motion to 0! I'll admit this is kinda useless though, as it simply stops the game.

https://gfycat.com/redflickeringfish

## Very big effects

You can have spheres that have a radius of 10 million (accounting for the 0.984724 multiplier to get their actual size):

``rule("Rule 1") { event { Ongoing - Global; } actions { Create Effect(All Players(All Teams), Sphere, Red, Array(Vector(0, 9989.590 * -1 * 1000, 0)), Array(1000 * 10000), Visible To Position and Radius); Create Effect(All Players(All Teams), Sphere, Red, Array(Vector(9847.240 * -1 * 1000 - 60, 0, 0)), Array(1000 * 10000), Visible To Position and Radius); Create Effect(All Players(All Teams), Sphere, Red, Array(Vector(9847.240 * 1000 + 60, 0, 0)), Array(1000 * 10000), Visible To Position and Radius); Create Effect(All Players(All Teams), Sphere, Red, Array(Vector(0, Global.B, 9847.240 * -1 * 1000 - 60)), Array(1000 * 10000), Visible To Position and Radius); Create Effect(All Players(All Teams), Sphere, Red, Array(Vector(0, Global.B, 9847.240 * 1000 + 60)), Array(1000 * 10000), Visible To Position and Radius); } } ``

It looks like this: https://gfycat.com/separaterepentantgoosefish

You can also have Ring Explosion effects with a huge radius: https://gfycat.com/plastickeycoelacanth

Or huge light shafts:
https://i.imgur.com/ay09NeR.jpg

## Bypassing death planes

Ever wanted to get to the bottom of King's row? Now you can!

Загрузка...
``rule("Bypass death planes") { event { Ongoing - Each Player; All; All; } actions { Set Max Health(Event Player, Array(10000 * 10000)); While(True); Heal(Event Player, Null, Array(10000 * 10000)); Wait(0.016, Ignore Condition); End; } } ``

Basically sets a huge amount of HP, then heals the player for 10 million HP each tick.

## Hitscan projectiles

By putting 999999 projectile speed, we can bypass the 500% projectile speed limit, and make every projectile hero act like an hitscan!

``actions { Set Projectile Speed(Event Player, Array(Multiply(10000, 10000))); } ``

## Huge in-world text

You can not only put a negative size for in-world texts:

https://i.imgur.com/QYGQaxH.png
``actions { Create In-World Text(All Players(All Teams), Custom String("Inverted text", Null, Null, Null), Vector(0, 0, 0), Array(-10), Do Not Clip, Visible To and String, Red, Visible Always); } ``

But you can also put a size of 10 million. At this point, the text is basically a wall of color: https://gfycat.com/mistygloomyamericankestrel

``actions { Create In-World Text(All Players(All Teams), Custom String("#", Null, Null, Null), Vector(0, 0, 0), Array(Multiply(10000, 10000)), Do Not Clip, Visible To and String, Red, Visible Always); } ``

This can even be used to make a green screen: https://gfycat.com/secondhandprestigiouscurassow

## Negative ult charge

Now you can make Moira's succ also drain ult charge, even in the negatives!

``actions { Set Ultimate Charge(Event Player, Array(Multiply(-1, 200))); } ``

## Infinite bots

Saving the best for last… infinite bots 2.0! (well, up to 18.)

By putting a negative slot in an array, you can spawn up to 12 dummies that will not despawn, as long as you spawn them at the start of the game.

Thanks to Developful for finding this one!

``rule("+12 dummies") { event { Ongoing - Global; } actions { For Global Variable(I, 0, 12, 1); Create Dummy Bot(Hero(Roadhog), Team 2, Array(-1 * 100), Objective Position(0), Vector(0, 0, 0)); End; } } ``

Using this glitch, you can create actually good PvE games with the workshop, like my Tower Meifense: https://reddit.com/r/Overwatch/comments/hxjoqc/the_infinite_bots_glitch_is_back_patched_on_ptr/

Have fun with this as it will very likely get patched soon (and is already patched on PTR)!