Check if Attack has recieved damage from Victim
PHP Code:
|
Re: Check if Attack has recieved damage from Victim
This triggers when you damage someone. The parameters are who took damage, who received and how much damage was taken (the last parameter is barely used). You cannot detect both at the same time.
What you can do, is making a 2D interger that grabs the damage you received, so you can see if the person you've damaged, had damaged you before. |
Re: Check if Attack has recieved damage from Victim
'victim' is always the one who takes the damage, if you take the damage you are the 'victim'
what you need to do is check if the 'victim' is x thing, and x thing etc. |
Re: Check if Attack has recieved damage from Victim
Quote:
PHP Code:
|
Re: Check if Attack has recieved damage from Victim
your logic is wrong, you need to understand what you want to do, tell us, we can't guess
|
Re: Check if Attack has recieved damage from Victim
Quote:
pd: if u dont understand dont post nonsense to gain posts and dont try to reply cause i will not read u |
Re: Check if Attack has recieved damage from Victim
PHP Code:
And then, when damaging again, use PHP Code:
Your #4 sample was just in reverse, but you got the idea right. |
Re: Check if Attack has recieved damage from Victim
as I said, the one who suffers the damage will always be the 'victim', from the moment you (attacker) suffer damage you are the 'victim', you know?
|
Re: Check if Attack has recieved damage from Victim
I have one dobut
PHP Code:
|
Re: Check if Attack has recieved damage from Victim
this code is from my 'hegrenade', it deals X ray damage
maybe i can help you PHP Code:
|
All times are GMT -4. The time now is 11:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.