In Engine Documentation can not see code "align charcter"

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

    Bažant

    20 Posts


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

    Zabiják klíčů

    525 Posts

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

    Imperátor

    7285 Posts