Jump to content

ForEachEntityInAABBDo


Rick
 Share

Recommended Posts

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.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

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.

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...