banner
Rating
Voted0

Automatic open gates

3
Mod version:1.0
Game version:all
The mod has been successfully tested for the absence of viruses
5495.14K231.37K

Report mod

  • image
modalImage

About This Mod

Description:

This mod extends the basic functionality of AnimatedObject, allowing doors and gates to open automatically when a player or vehicle enters the trigger area.

It implements this by reading custom XML settings defined within the `<controls .../>` tag in the animatedObject entry.

The following custom XML keys are supported:

1. "autoopen=false" (default: true)

Enables or disables automatic opening globally. If this parameter is not specified, the default value is true. Setting this value to false disables auto-open for transport and player, regardless of other settings.

2. "autoopenVehicles=false" (default: true)

If set to true or not specified, vehicles crossing the trigger cause the door/gate to open.

3. "autoopenPlayer=false" (default: true)

If set to true or not specified, the player (on foot) crossing the trigger opens the door/gate.


**Use cases: in your mod XML file**


· Enable auto-open for transport and player: no setting required, enabled by default.


· Disable auto-open for transport and player:

<controls triggerNode="doorTrigger" posAction=";ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" autoopen="false"/>


· Disable automatic opening for player:

<controls triggerNode="doorTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" autoopenPlayer="false"/>


· Disable auto-open for transport:

<controls triggerNode="doorTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" autoopenVehicles="false"/>


Similar Mods/Addons

Game Version *

all (FS25_Lev_AutoOpenGates_modland.zip)