Advertisement
Irkutsk86

ExileClient_object_player_event_onHandleDamage

Mar 2nd, 2024
1,520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.70 KB | None | 0 0
  1. /**
  2.  * Exile Mod
  3.  * www.exilemod.com
  4.  * © 2015 Exile Mod Team
  5.  *
  6.  * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  7.  * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  8.  */
  9.  
  10. private["_unit","_selectionName","_amountOfDamage","_sourceOfDamage","_typeOfProjectile"];
  11. _unit             = _this select 0;
  12. _selectionName    = _this select 1;
  13. _amountOfDamage   = _this select 2;
  14. _sourceOfDamage   = _this select 3;
  15. _typeOfProjectile = _this select 4;
  16.  
  17.  
  18.     if (isPlayer _sourceOfDamage && !(_sourceOfDamage isEqualTo player)) exitWith
  19.     {
  20.         _amountOfDamage = damage _unit;
  21.         _amountOfDamage
  22.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement