Created
October 27, 2016 17:10
-
-
Save jameslkingsley/dd177bb84dc4b28f8cb3da2293cf1c4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| params ["_unit","_damagedPart","_damageDone","_sourceUnit","_projectile"]; | |
| // Define to-be-damaged parts. | |
| _meme = [meme1, meme2]; | |
| _tailrotor = "mala vrtule"; | |
| if (_projectile != "FakeAmmo") exitWith {_damageDone}; | |
| if (((random 100) / 100) <= 0.2) then { | |
| { | |
| _x setHit [_tailrotor, 0.8]; | |
| _x removeAllEventHandlers "HandleDamage"; | |
| } forEach _meme; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment