Example #1
0
 public static bool IsActionAllowed(IMyEntity entity, MyCustomSafeZoneAction action, long sourceEntityId = 0)
 {
     return(MySessionComponentSafeZones.IsActionAllowed((entity as VRage.Game.Entity.MyEntity), GetHacks(MySessionComponentSafeZones.AllowedActions, (int)action), sourceEntityId));
 }
Example #2
0
 public static bool IsActionAllowed(Vector3D point, MyCustomSafeZoneAction action, long sourceEntityId = 0)
 {
     return(MySessionComponentSafeZones.IsActionAllowed(point, GetHacks(MySessionComponentSafeZones.AllowedActions, (int)action), sourceEntityId));
 }
Example #3
0
 public static bool IsActionAllowed(BoundingBoxD aabb, MyCustomSafeZoneAction action, long sourceEntityId = 0)
 {
     return(MySessionComponentSafeZones.IsActionAllowed(aabb, GetHacks(MySessionComponentSafeZones.AllowedActions, (int)action), sourceEntityId));
 }