caracal5 Posted September 16, 2024 Posted September 16, 2024 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. 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?
SKKmods Posted September 16, 2024 Posted September 16, 2024 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).
caracal5 Posted September 16, 2024 Author Posted September 16, 2024 (edited) On 9/16/2024 at 11:21 AM, 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). Expand 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 September 16, 2024 by caracal5
SKKmods Posted September 17, 2024 Posted September 17, 2024 That is most probably an issue with your property and object typing discipline.
Recommended Posts