Skip to content

getHeadingPoints(point1, point2, true) throws exception #103

@PaulEden

Description

@PaulEden

2024-10-25 21:50:12.663 WARNING SCRIPTING (Main): MIST|get3DDist|5253: mist.utils.get2DDist 2nd input value is nil

".../~mis0000532C.lua"]:5255: attempt to index local 'point2' (a nil value)
stack traceback:
[C]: ?
[string ".../~mis0000532C.lua"]:5255: in function 'get3DDist'
[string ".../~mis0000532C.lua"]:5206: in function 'getHeadingPoints'

When called in the context of getting a heading for a player, getHeadingPoints calls get3DDist, it does not pass the point2 parameter, resulting in the above exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions