Files
7d2dXG/Mods/0A-KFCommonUtilityLib/Scripts/Requirements/IsInJeep.cs
Nathaniel Cosford e06f2bd282 Add All Mods
2025-05-29 23:33:28 +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;
}
}