Hst Emergency Hatch

Discussion in 'General Discussion' started by 85hertz, Apr 14, 2024.

  1. 85hertz

    85hertz Well-Known Member

    Joined:
    Jun 22, 2021
    Messages:
    336
    Likes Received:
    398
    Good day to all of you.

    I've recently played a scenario off ATS which featured the Emergency Hatch on the AP Valenta HST raising up.

    I wanted to implement this in my own scenario (just for personal use), so I checked the script and I came across the following lines of code:

    -- portion of code related to raising HST hatch
    function OnEvent (event)
    if event == "OpenHstHatch" then
    SysCall("43050#####:SetControlValue", "Hatch", 0, 1)
    end
    end

    I implemented this code in my scenario, replacing 43050##### to 43153 as that's the name of the specific HST, however that didn't seem to work in my scenario. Would any of you happen to have an idea on how to make this work? Any help would be greatly appreciated. Many thanks.



    [​IMG]
     

Share This Page