16 lines
358 B
C#
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;
|
|
}
|
|
}
|