EVENT_SAY only triggering when right on top of a mob
Looking at the code, it would appear that EVENT_SAY should have a range of 200, but it only seems to work when I'm within 10.
What am I missing? |
If you are looking at the same code as I am, i.e. client.cpp, line 992, then it is using the DistNoRootNoZ function which doesn't use square root (for performance reasons) to get the real distance, so in that context, 200 is equivalent to sqrtf(200) == 14.14 in real distance units.
|
Ah-ha! I didn't dig that deep into it, just assumed the 200 was 'real distance units'. Thanks!
|
All times are GMT -4. The time now is 01:51 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.