Upload from upload_mods.ps1
This commit is contained in:
15
Scripts/Requirements/IsInJeep.cs
Normal file
15
Scripts/Requirements/IsInJeep.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user