ItsDeltin / Overwatch-Script-To-Workshop

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

"EvaulateOnce()" doesn't return its parameter's value #210

Closed Protowalker closed 3 years ago

Protowalker commented 3 years ago

Assuming that test is a class that a field "color": EvaluateOnce(test).color seems like it should work, but it returns an error. EvaluateOnce(test.color) wraps the entire expression, meaning color won't reevaluate. The current workaround is (<Test>EvaluateOnce(test)).color but the first syntax seems most fitting to me.

Protowalker commented 3 years ago

(<Test>EvaluateOnce(test)).color also doesn't seem to work. It gives the error Invalid Expression Term ')' just before the dot.

Protowalker commented 3 years ago

Just checked and it is apparently caused by the typecast operator.

ItsDeltin commented 3 years ago

Done in v2.0