In Engine Documentation can not see code "align charcter"

  • #1, by genaticstudioWednesday, 09. February, 01:25 4 months ago
    in Engine Documentation can not see code "align charcter"
    I want the character to be facing the cursor

    Newbie

    19 Posts


  • #2, by esmeraldaWednesday, 09. February, 15:26 4 months ago
    you mean the Lua command to allign a character in a certain position?

    That should be:
    Characters["Name"].Direction = 0
    (0 = right, 90 = up, ...)

    Great Poster

    454 Posts

  • #3, by afrlmeWednesday, 09. February, 15:48 4 months ago
    you mean the Lua command to allign a character in a certain position?

    That should be:
    Characters["Name"].Direction = 0
    (0 = right, 90 = up, ...)

    Kind of, but they said they want to align the character to the mouse cursor, but that requires a bit of math & I can't remember what it is off the top of my head & the wiki server currently appears to be down - I'm sure I posted an example on there ages ago.

    Imperator

    7135 Posts

Write post