ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
208 stars 26 forks source link

Mistaking Array as Variable #82

Closed halseyislife closed 5 years ago

halseyislife commented 5 years ago

murderers[0].ents[6] = LastTextID(); is resulting in Set Player Variable(Value In Array(Global Variable(murderers), 0), ents, Last Created Entity); replacing the whole variable instead of just the index

ItsDeltin commented 5 years ago

If murderers is a class array do (<Murderer>murderers[0]).ents[6] instead, replace Murderer with whatever the class name is. Nevermind, I see the issue.

ItsDeltin commented 5 years ago

67933a573122580c0580a4264556355fe225e027 should fix it.