Skip to content

Instantly share code, notes, and snippets.

@GeorgeDettmer
Last active September 3, 2015 15:08
Show Gist options
  • Save GeorgeDettmer/4a89f8f66dc1b02d895d to your computer and use it in GitHub Desktop.
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
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
}
}];
@GeorgeDettmer
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment