Indarello Posted November 17, 2019 Share Posted November 17, 2019 (edited) Player.moveTo(Bed, 0, 0, 0, True) Player.PlayIdleWithTarget(Sleep_anim, Bed) Bed is static and placed in the same cell as Player, cell in not small so it have loadscreen when it move player to bedThe problem is that Player.PlayIdleWithTarget(Sleep_anim, Bed)is not workingif i set Player.moveTo(Bed, 0, 0, 0, True) Utility.Wait(10.0) Player.PlayIdleWithTarget(Sleep_anim, Bed) This working but I need to applay animation immidiatly on loadHow I can make this?I also tried DisableNoWait() Edited November 17, 2019 by Indarello Link to comment Share on other sites More sharing options...
DieFeM Posted November 17, 2019 Share Posted November 17, 2019 (edited) Using TranslateToRef it should work because the player is in the same cell than the bed, this function doesn't show a load screen. Then in the event OnTranslationComplete use PlayIdleWithTarget. Function SomeFunction() RegisterForRemoteEvent(Player, "OnTranslationComplete") Player.TranslateToRef(Bed, 1000.0) EndFunction Event ObjectReference.OnTranslationComplete(ObjectReference akSender) UnregisterForRemoteEvent(akSender, "OnTranslationComplete") akSender.PlayIdleWithTarget(Sleep_anim, Bed) EndEvent Edited November 17, 2019 by DieFeM Link to comment Share on other sites More sharing options...
Indarello Posted November 17, 2019 Author Share Posted November 17, 2019 (edited) ThanksIt is possible so when player is translated he will touch and activate some triggers?Maybe I will try first moveto near bed then translate and then run animation Edited November 17, 2019 by Indarello Link to comment Share on other sites More sharing options...
Recommended Posts