Detect Death by worldspawn?
Mm.. quick question. Is there a way to detect if you were killed by worldspawn, like if you were changing your class. Can someone provide a small snippet if it is possible :). Thanks for your time.
|
Code:
it's also possible that instead of coming up as getting killed by 0 it will come up as getting killed by yourself (killer == victim). |
Your code would work for kill with worldspawn and trigger_hurt so better read 4rd data argument:
Code:
Aslo killer == victim at: - "kill" console command - HE grenade suicide - user_kill native |
thanks. i did not know about the fourth argument.
|
| All times are GMT -4. The time now is 20:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.