Community Forum

Trigger for sliding door/gate

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created28.06.2018 13:52


O.wiesemann (TopAce8888) 28.06.2018 13:52
Hello,
I have a sliding gate on my modmap and im trying to automate opening and closing.

I first tried it as an animated object. The trigger is working fine if i press the specified button but i would like the door to open automatically on approaching the trigger.

<animatedObject index="BayWa_Gate">
<controls posKey="ANIMATED_OBJECT_OPEN_DOOR" triggerNode="0" posText="input_ANIMATED_OBJECT_OPENCLOSE_GATE" negText="input_ANIMATED_OBJECT_OPENCLOSE_GATE" />
<sound file="maps/sounds/OpenGateDoorSound.wav" pitchOffset="1.00" volume="0.50" indoorVolumeFactor="0.55" indoorLowpassGain="0.85" pitchMax="1.15" />
<animation initialTime="0" duration="3" >
<part node="1"> <!-- node -> child index -->
<keyFrame time="0.05" translation="0 0 0" /> <!-- translation, rotation, scale, visibility -->
<keyFrame time="1.00" translation="13.5 0 0" />
</part>
</animation>
</animatedObject>

Alternatively, I tried the SlideDoorTrigger script. Which is also working but not with a Vehicle, only by foot. I changed the collision mask to e00000 and I used e02000 from the barrier trigger script, but without success with a vehicle.

Is there a chance to automate a sliding door just on entering a trigger?

Bilbo Beutlin (BBeutlin) 28.06.2018 17:12
See FS17 install folder "sdk/collisionMasks.txt" for right combination of trigger bitmask.

O.wiesemann (TopAce8888) 29.06.2018 11:34
I tried various bit combinations without success. The trigger is working fine in FS15, in FS15 only by foot.

Is there any chance for opening a gate without user interaction on approaching an appropriate trigger?

Bilbo Beutlin (BBeutlin) 29.06.2018 19:43
Scripts from FS15 will barely work in FS17 anymore.
Use the FS17 door trigger SDK from here. Read the instructions carefully.
Perhaps also examine a FS17 map with working sliding gates.

O.wiesemann (TopAce8888) 02.07.2018 18:55
I know the SDK. Opening a door as an animated object is no problem, as I mentioned in my first post.

Its not a FS15 specific trigger or function. Its implemented in FS17 by default (like the barrier trigger) , so i assume it should work, but it behaves in a different way than in FS15.


Note: Log in to post. Create a new account here.