wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps
https://wurstlang.org
Apache License 2.0
225 stars 30 forks source link

how to use ExecuteFunc in wurst #1067

Closed fbicirno closed 2 years ago

fbicirno commented 2 years ago

how to use ExecuteFunc in wurst?

execute()-> has a array limit, i dont want to acces array limit.!!

Frotty commented 2 years ago

ExecuteFunc isn't related to execute() -> because you don't get any information whether the invocation was successful execute uses ForForce. execute() -> is only array limited in nested execute calls and amount of closures at the same time. If you use it properly it's very unlikely you would hit any limit. Most likely there is some other issue in your code causing this.