Jump to content

Get callout location


TdePadua

Recommended Posts

credit goes to Anarchiyx3  for originally having this method to get the current callout running, (I modified it to get the position of the callout actively running):

 

internal static Vector3 getCurrentRunningCalloutPosition()
        {
            foreach (var callout in ScriptComponent.GetAllByType<Callout>())
            {
                if (callout != null && callout.AcceptanceState == CalloutAcceptanceState.Running)
                {
                    return callout.CalloutPosition;
                }
            }
            return Vector3.Zero;
        }

also please note this message to the code from Albo1125:

 Just a side note on the function to get the current callout - as it uses functions that are not part of the official LSPDFR API there may be issues with it. In addition those functions are likely to be marked internal in 0.4.

Edited by NoNameSet
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...