ns_takedamage
Функция устарела, старайтесь не использовать!
- Синтаксис
-
#pragma deprecated It is suggested to use hamsandwich for this action instead. native ns_takedamage(IDVictim, IDInflictor, IDAttacker, Float:Damage, DamageType);
Переменная | Описание |
---|---|
IDVictim |
The victim that is taking the damage. |
IDInflictor |
The entity that is causing the damage (weapon, etc). |
IDAttacker |
The attacker who is triggering the damage (person shooting). |
Damage |
The amount of damage being done. |
DamageType |
The damage type being done (bitmask). |
- Описание
- Calls NS's private damage routine on the victim entity.
- Пометка
-
This is provided for backwards compatibility with peachy's module. It is suggested to use hamsandwich for this action instead.