In Engine Documentation can not see code "align charcter"

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

    Newbie

    20 Posts


  • #2, by esmeraldaWednesday, 09. February 2022, 15:26 2 years 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, ...)

    Key Killer

    513 Posts

  • #3, by afrlmeWednesday, 09. February 2022, 15:48 2 years 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

    7278 Posts