Files
7d2dXG/XG-Rebirth/Mods/0A-KFCommonUtilityLib/Scripts/Requirements/IsInJeep.cs
2025-05-30 00:19:27 +09:30

16 lines
358 B
C#

public class IsInJeep : IsAttachedToEntity
{
public override bool IsValid(MinEventParams _params)
{
if (!base.IsValid(_params))
{
return false;
}
if (invert)
{
return !(target.AttachedToEntity is EntityVJeep);
}
return target.AttachedToEntity is EntityVJeep;
}
}