Hi,
i am doing a jumping puzzle and used "KeepVehiclesOut" to prevent people from flying into the zone.
But of course they jump off and the vehicle can pass the zone, or people can call their own vehicle inside the zone.
So is it possible to prevent mounting inside a zone? (especially for flying vehicles like mini copter, scrapcopter)?
Prevent Mounting on vehiclesSolved
*bumb*
Hello, same here, players are still able to add cars inside zone, driving in direction of zone and jump out and let the car roll inside, and then they are able to mount this car and drive inside the zone :(
is it possible to add NoMount flag :)
I made very tiny Plugin for that. You will need to insert the zone ID yourself but it works.
Maybe we get such a flag but for now you add me on discord
Toliman#7059
Merged post
Actually you can copy this snippet into any plugin. But you need to manually change the Zone ID.
This snippet will disable ALL mountings in this zone. I guess even chairs or instruments.
Maybe it fits as workaround
[PluginReference] private Plugin ZoneManager;
object CanMountEntity(BasePlayer player, BaseMountable entity)
{
if (ZoneManager != null)
{
foreach (string zone in (string[])ZoneManager.Call("GetPlayerZoneIDs", player))
{
if (zone == "84347574")
{
PrintToChat(player, "Sorry! No Fly Zone :P");
return false;
}
}
}
return null;
} I've have added 'NoVehicleMounting' and 'NoVehicleDismounting' flags in the upcoming version. There is a beta of it out for testing if interested
https://umod.org/community/zone-manager/44117-310-beta