Scenario: How to interact with door?

Forum Forums Discussion Scenario: How to interact with door?

This topic contains 5 replies, has 2 voices, and was last updated by Pain Pain 5 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10089
    Pain
    Pain
    Participant
    0

    Im trying to get my character to go through a door and i know it is in the teleport command but im not sure exactly how. the prompt that comes up is a simple yes/no so i thought teleportnpc() would do it, but it just brings up the teleport menu.

    Help?

    • This topic was modified 5 years, 10 months ago by Pain Pain.
    #10091
    kontu
    kontu
    Participant
    0

    teleportNPC() is how to interact with a door. I use it in my squadron scenarios to go in and out of the barracks.

    #10092
    Pain
    Pain
    Participant
    0

    thats the door im trying to go through.

    #10093
    kontu
    kontu
    Participant
    0

    So run near the door and use teleportNPC(). Share your scenario chapter where it isn’t working and maybe we can look at it.

    #10094
    Pain
    Pain
    Participant
    0
    gotowaypoint(17)
    holdkey(w,0.5)
    teleportnpc()

    it goes to the waypoint, walks to the door and then opens the teleport menu while standing right infront of the door.

    I’m just gonna delete the whole scenario and redo it, maybe its bugged somehow internally. Cuz this makes no sense.

    #10095
    Pain
    Pain
    Participant
    0

    So, just realized i didn’t post an update here.

    I deleted the scenario and remade it, the exact same code, and it works fine now. *shrugs*

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.