This mod extends the base functionality of AnimatedObject so that doors and gates open automatically when a player or vehicle enters a trigger area.
This is done by reading custom XML settings defined in the "<controls .../>" tag of an animatedObject entry.
The following custom XML keys are supported:
1. "autoopen=false" (default: true)
Enables or disables autoopen globally. If unset, it defaults to "true".
If set to "false", autoopening of vehicles and players is disabled regardless of the other settings.
2. "autoopenVehicles=false" (default: true)
If set or not, vehicles entering the trigger will open the door/gate.
3. "autoopenPlayer=false" (default: true)
If set or not, the player (on foot) entering the trigger will open the door/gate.
**Usage examples: In your mods XML file**
• Enable auto-opening for vehicles and players: Enabled by default, no need to enable it.
• Disable auto-opening for vehicles and players:
<controls triggerNode=”doorTrigger” posAction=“;ACTIVATE_HANDTOOL“ posText=“action_openGate“ negText=“action_closeGate“ autoopen=”false
/
> autoopenPlayer="false"/>
• Disable auto‑open for vehicles:
<controls triggerNode="doorTrigger" posAction="ACTIVATE_HANDTOOL" posText="action_openGate" negText="action_closeGate" autoopenVehicles="false"/>