Jump to content

"type mismatch on parameter 1 - cannot pass a referencealias to a objectreference" when calling external alias ref


Recommended Posts

I want to teleport an actor to a marker that is not a specific marker on a ship. It is a marker that exists on every ship.

2024-09-1612_04_42-Window.png.c6d3b31b3900971b7cabec3038c86e4e.png

When I try to call this via:
 

Man.GetActorRef().moveto(ShipPassengerMarker)

It causes a compile erro:
 

type mismatch on parameter 1 - cannot pass a referencealias to a objectreference

How would I fix that?

Link to comment
Share on other sites

9 hours ago, SKKmods said:
Man.GetActorRef().moveto(ShipPassengerMarker.GetReference())

If you dont understand the difference between a ReferenceAlias and an ObjectReference read the relevant pages like https://ck.uesp.net/wiki/Quest_Alias_Tab#:~:text=Reference Aliases can be applied,a non-actor reference).

 

I don't understand entirely. For example in my quest I have a furniture and a xmarkerheading, both are specific reference alias as fill type, however in the script I had to turn the furniture into an object reference property for it to work, however the xmarkerheading works as a reference alias property.

And I do not understand why. Aren't both objects that are placed in the gameworld?

Edited by caracal5
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...