Feature Request - New Script Method

Discussion in 'Suggestions' started by DmitriSkif, Jan 8, 2023.

?
  1. Yes, It can be used many ways

    2 vote(s)
    100.0%
  2. Nah, forget.

    0 vote(s)
    0.0%
  1. DmitriSkif

    DmitriSkif Active Member

    Joined:
    Dec 28, 2022
    Messages:
    115
    Likes Received:
    85
    As a designer, I kindly ask You to add a new method, giving the name of trainControl, that the player's InteriorCamera or mouse pointer is aimed at. Please.

    Usage (in Update () loop):

    myControlName = Call( "*:GetCameraAimedControlName", "InteriorCamera", 0 ); -- gives control's name that player looks at (center of the screen)
    myControlName = Call( "*:GetCameraAimedControlName", "MousePointer", 0 ); -- gives control's name player points with a mouse pointer
    Both cases, to get the name. control must have a geometry node linked.
    If no aim or geometry node has no control link, return null.

    So then we can do smth like:
    Call("*:LockControl", myControlName, 0, 1);

    As for me, I have a strong interest to use this feature as a universal, highly effective control interface input mapper. I want to point cab lever with a mouse or camera and update it's value using common pair of buttons for all cab, or mouse wheel. Thanks.
     
    Last edited: Jan 8, 2023
    • Like Like x 1

Share This Page