How to check if enemy was killed trough walls?
Okay, so I have this code and I want to add more stuff!
Check if the player killed the enemy trough a wall, is it possible? PHP Code:
|
Re: How to check if enemy was killed trough walls?
You can use the is_visible native. Search the internet, you will find info.
|
Re: How to check if enemy was killed trough walls?
I searched but nothing found that can help me resolve/make this
|
Re: How to check if enemy was killed trough walls?
http://amxmodx.org/doc/index.html?pa...is_visible.htm
http://www.amx-x.ru/viewtopic.php?f=8&t=9682 Simpl, you have to include engine and the check should look like this: PHP Code:
|
Re: How to check if enemy was killed trough walls?
What I'm doing wrong? If the enemy kills me trough a wall, the message displays "not visible", but if is visible the message stills the same.
PHP Code:
|
Re: How to check if enemy was killed trough walls?
I can't see anything wrong with the code. Just a note, use else, because with "else" you won't force the engine to check again the conditions. Also, you have to know that you have to be FULLY visible, otherwise you are still invisible.
|
Re: How to check if enemy was killed trough walls?
But what I need, is when you kill the enemy trought a wall (not visible) print message "not visible", else if visible (not trought wall) print "visible"
|
Re: How to check if enemy was killed trough walls?
I understand this. But, as far as I know, you are still invisible if part of you is visible. You have to be the whole visible, so the engine will think you for visible.
|
Re: How to check if enemy was killed trough walls?
I don't understand :(
If possible to make a function, just when you kill someone trough a wall like a wallhack, do some stuff then? |
Re: How to check if enemy was killed trough walls?
This is your function. All I wanted to say is that you have to be FULLY visible, so is_visible will return possitive result (-> you are visible). If only some part of you is visible, then you are still not visible, and the message will be
"not visible". |
| All times are GMT -4. The time now is 21:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.