Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

In Engine Documentation can not see code "align charcter"

  • #1, by genaticstudio 4 years ago Zitieren
    in Engine Documentation can not see code "align charcter"
    I want the character to be facing the cursor
  • #2, by esmeralda 4 years ago Zitieren
    you mean the Lua command to allign a character in a certain position?

    That should be:
    Characters["Name"].Direction = 0
    (0 = right, 90 = up, ...)
  • #3, by afrlme 4 years ago Zitieren
    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.