Skip to content

Commit

Permalink
Carrying - Do not show carry action on unconscious players in vehicles (
Browse files Browse the repository at this point in the history
#101)

Do not show carry action on unconscious players in vehicles
  • Loading branch information
Kexanone authored Sep 12, 2024
1 parent 6a380c7 commit 95eda00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ACE_Carrying_CarryUserAction : ScriptedUserAction
override bool CanBeShownScript(IEntity user)
{
ChimeraCharacter ownerChar = ChimeraCharacter.Cast(GetOwner());
if (!ownerChar)
if (!ownerChar || ownerChar.IsInVehicle())
return false;

SCR_CharacterControllerComponent ownerCharCtrl = SCR_CharacterControllerComponent.Cast(ownerChar.GetCharacterController());
Expand Down

0 comments on commit 95eda00

Please sign in to comment.