How to know the emplacement of the bomb entity ?
Hello (sorry if my english is not perfect I speak french)
I began a plugin and I need to know the emplacement in x,y and z of the bomb entity. (I know i can do a .cfg file for each map but i want it find the emplacement automatically) Thank you to help me :wink: |
Look here: http://forums.alliedmods.net/showthread.php?t=24897
But note: there are no 100% solution. You can be fairly sure about origin of the bomb site only if map contains only one "func_bomb_target" entity. |
re
thx I will try it :P
|
Here are also geometric way. It's more precise.
Basically you have to scan through all bomb taget entities and check it's distance. Then combine closest entities to groups (bomb targets). That way will not work only for maps which was created without "logic" (i.e. bombsite A contain bombsite B etc). If you decide to use that way you need get_box_distance function: http://forums.alliedmods.net/showthread.php?t=24758 |
| All times are GMT -4. The time now is 05:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.