antstubell Posted March 24, 2021 Share Posted March 24, 2021 As title says. I have checked all properties and they are fine. Player is supposed to move to a xmarkerheading in the same cell for testing purposes but doesn't. Rest of script works fine. Event OnActivate(ObjectReference akActionRef)Int SoundInstance = SFX.Play(SndMarker)Utility.Wait(Delay); some sfx have a start up soundTranslateRef.TranslateTo(PosX1, PosY1, posZ1, RotX1, RotY1, RotZ1, SpeedVal, RotationVal)Utility.Wait(Time)akActionRef.MoveTo(MovToRef)Sound.StopInstance(SoundInstance)debug.notification("Moving Player")EndEvent Link to comment Share on other sites More sharing options...
IsharaMeradin Posted March 24, 2021 Share Posted March 24, 2021 For testing purposes, will the player move to a marker in a different cell rather than the same cell? Link to comment Share on other sites More sharing options...
antstubell Posted March 25, 2021 Author Share Posted March 25, 2021 (edited) Yes, player will be moved to an interior cell. Should I test this way? EDIT: Yet thid works perfectly... Actor Property PlayerREF AutoObjectReference Property MovToRef AutoEvent OnTriggerEnter(ObjectReference akActionRef)if akActionRef == PlayerRefPlayerRef.MoveTo(MovToRef)EndIfEndEvent Edited March 25, 2021 by antstubell Link to comment Share on other sites More sharing options...
IsharaMeradin Posted March 25, 2021 Share Posted March 25, 2021 I'm just tossing around ideas here cause I have no idea why it wouldn't work. Can you move the player with the OnActivate event before doing any of the other stuff? Link to comment Share on other sites More sharing options...
antstubell Posted March 26, 2021 Author Share Posted March 26, 2021 I've seen the error of my... script. The script is placed on a link marker activator and activated by a pull chain. So akActionRef.MoveTo(MovToRef) is attempting to move the marker. I added Actor Property PlayerREF and changed the line to PlayerRef.MoveTo(MovToRef) and all now works. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted March 26, 2021 Share Posted March 26, 2021 That would do it. Glad you got it sorted. Link to comment Share on other sites More sharing options...
Recommended Posts