Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

ForEachObject


Recommended Posts

I guess I'll stick this here.

Someone made a ForEachObj extension.

I myself haven't gotten around to using, but did check out the examples it came with.

it pretty much does what LarkSS does for iterations.

{Always}
  (Set Spread ID("ObjectA") To 0)
  (Start Loop Index "object.itrate", Number("ObjectA"))
{On Loop "object.itrate"}
&[ID("object") = LoopIndex("object.itrate")]

Link to comment
Share on other sites

Gave this a try. Don't know about performance compared to standard object iteration, but not using value spreading and hence not checking the ID value is sorta nifty. I probably won't ever use it though until it's properly supported in MMF2 HWA.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...