Last active
September 3, 2015 15:08
-
-
Save GeorgeDettmer/4a89f8f66dc1b02d895d to your computer and use it in GitHub Desktop.
Attempt to allow only players with appropriate medical kits to revive players using in ArmA 3
This file contains 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
BIS_revive_enabled = "Medikit" in (assignedItems player + items player); | |
player addEventHandler ["take",{ | |
if (_this select 2 == "Medikit") then { | |
BIS_revive_enabled = true | |
} | |
}]; | |
player addEventHandler ["put",{ | |
if (_this select 2 == "Medikit") then { | |
BIS_revive_enabled = false | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This did not work. From the variable name BIS_revive_enabled I had thought this would dictate whether the reviver could actually do a revive. Turns out it determines if you can be revived or not.