S.T.A.L.K.E.R Posted May 14, 2019 Share Posted May 14, 2019 I have some questions about animations When you press F to enter a car when the character aligns to start the open door sequence. what determines that location to move the root of niko, there is no bones in the car models. If the animation clips don't have root motion does the engine transform the player root during the sequence. Link to comment Share on other sites More sharing options...
S.T.A.L.K.E.R Posted May 16, 2019 Author Share Posted May 16, 2019 (edited) Still trying to find a way to get the animation positions out of this game. get_in_ds from [email protected] has has 25 frames. If I can log the player location and heading, before and at the last frame it might help key framing the transforms in 3ds max. Ideally logging every frame would be better, from the script below "p4_Stop_On_last_frame" Anybody know if I can stop on a frame number or not? could somebody help with code to write a log of coordinates? Thankyou Imports System Imports System.Drawing Imports System.Windows.Forms Imports GTA Imports System.IO Imports System.Text Public Class BaseScriptProject Inherits Script Private AnimSet As AnimationSet Private AnimName As String = "get_in_ds" Public Sub New() Me.Interval = 10 AnimSet = New AnimationSet("[email protected]") Native.Function.Call("REQUEST_ANIMS", "[email protected]") End Sub Private Sub msg(ByVal smsg As String, ByVal duracao As Int32) Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", smsg, duracao, 1) End Sub Private Sub keyDown(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyDown If e.Key = Keys.E Then Dim p1_Repeat, p2, p3, p4_Stop_On_last_frame As Boolean Dim timeOfPlayback As Int16 = 0 p1_Repeat = False p2 = False p3 = False p4_Stop_On_last_frame = True Native.Function.Call("TASK_PLAY_ANIM", Player.Character, "get_in_ds", "[email protected]", 8.0, p1_Repeat, p2, p3, p4_Stop_On_last_frame, timeOfPlayback) End If End Sub Private Sub keyUp(ByVal sender As Object, ByVal e As GTA.KeyEventArgs) Handles MyBase.KeyUp End Sub Private Sub general_tick(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Tick End Sub Private Sub console_CMD(ByVal sender As Object, ByVal e As ConsoleEventArgs) Handles MyBase.ConsoleCommand End Sub Private Sub GraphicsEventHandler(ByVal sender As Object, ByVal e As GTA.GraphicsEventArgs) Handles MyBase.PerFrameDrawing End Sub End Class Edited May 16, 2019 by S.T.A.L.K.E.R added script Link to comment Share on other sites More sharing options...