Prevent damage to teammates
#2

OnPlayerTakeDamage:
Return Values:
1 - Callback will not be called in other filterscripts.
0 - Allows this callback to be called in other filterscripts.
It is always called first in filterscripts so returning 1 there blocks other filterscripts from seeing it.


But..
If you use weapon-config include:
returning false in OnPlayerDamage will prevent damage from being inflicted.
Reply


Messages In This Thread
Prevent damage to teammates - by xRadical3 - 27.06.2020, 23:45
Re: Prevent damage to teammates - by algorhitmically - 27.06.2020, 23:58
Re: Prevent damage to teammates - by Kwarde - 28.06.2020, 00:03
Re: Prevent damage to teammates - by xRadical3 - 28.06.2020, 09:36

Forum Jump:


Users browsing this thread: 3 Guest(s)