Rick Posted September 13, 2010 Share Posted September 13, 2010 How do you "unregister" the ForEachEntityInAABBDo callback or any of them for that matter? If I call this multiple times will it register all those locations or overwrite the last one and only register one always? Quote Link to comment Share on other sites More sharing options...
Canardia Posted September 13, 2010 Share Posted September 13, 2010 It doesn't register anything, but you give the function to be called as parameter when you call the ForEachEntity...() function. It's not really a callback in that sense, but only a function pointer. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted September 13, 2010 Author Share Posted September 13, 2010 But what if I set the function up then sometime during the running of the exe I don't want it to be called anymore when entities are in that specific area I defined? How can I tell LE to stop making the callback when entities are inside that area? Quote Link to comment Share on other sites More sharing options...
ZioRed Posted September 13, 2010 Share Posted September 13, 2010 But what if I set the function up then sometime during the running of the exe I don't want it to be called anymore when entities are in that specific area I defined? How can I tell LE to stop making the callback when entities are inside that area? Isn't it enough simply not to call ForEachEntityInAABBDo when you are in "pause scan" mode (with some flag in your code)? As Lumooja said it seems you don't register callback in an event driven way, the callback you specify within ForEachEntityInAABBDo is only called when you call ForEachEntityInAABBDo in your code. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Rick Posted September 13, 2010 Author Share Posted September 13, 2010 Oh, duh, my bad. I wasn't reading into that correctly Sorry for the brain fart. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.