Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CBA_fnc_selectWeapon, add CBA_fnc_isPerson and CBA_fnc_canUseWeapon #219

Merged
merged 1 commit into from
Dec 15, 2015
Merged

fix CBA_fnc_selectWeapon, add CBA_fnc_isPerson and CBA_fnc_canUseWeapon #219

merged 1 commit into from
Dec 15, 2015

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Dec 15, 2015

fixes:

  • CBA_fnc_selectWeapon doesn't work when the unit is in a firing from vehicles slot.
  • CBA_fnc_selectWeapon doesn't work when the local player has not the same weapon as the unit.

adds:

  • CBA_fnc_selectWeapon can now select vehicle weapons.
  • CBA_fnc_selectWeapon has an optional paramter to select a specific weapon mode.
  • CBA_fnc_isPerson which checks if an object is a person (soldier, civilian etc.).
  • CBA_fnc_canUseWeapon which checks if a unit can currently use it's rifle, pistol or launcher. (Basically true on foot and in FFV slots, proved itself very usefull in ACE)

Killswitch00 added a commit that referenced this pull request Dec 15, 2015
fix CBA_fnc_selectWeapon, add CBA_fnc_isPerson and CBA_fnc_canUseWeapon
@Killswitch00 Killswitch00 merged commit cfd6723 into CBATeam:master Dec 15, 2015
@ViperMaul ViperMaul modified the milestone: 2.2.1 Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants