Skip to main content

Determine the direction in which you are looking with code

Comments

2 comments

  • Aleece Landis
    Expert (Gold)

    Hum, it seems to me that this should be possible somehow (seeing as you can adjust which way the agent faces for things,) I'm just not quite sure how to go about it.

    0
  • Debbie Alexander Community moderator
    Beacon of Knowledge Expert (Gold) Moderator

    With the update, I had hope for the new Python Notebooks function, player.look_at(location) - but it only returns a value, true or false, and doesn't do anything like what I would think goes with the idea of "looking at" something =D. That said, there are a dozen shiny new player commands ready for tinkering, so that's good news on other fronts!

    ********************** edit ******************************

    Some days I just LOVE being wrong! 

    Here is how it works:

    player.look_at("0 0 20000")
    You have to manipulate the last number. It won't let you look up and down as far as I can tell (at school now so no more time to tinker!) But all else remaining the same, you can get yourself to turn around with numbers like 0 0 0 and 0 0 100 and 0 0 10000
    I haven't got it nailed down, but there is hope. =]
    0

Please sign in to leave a comment.