Trun not working in SplineTranslateToRef ?

Post » Wed Sep 14, 2016 10:57 am

This is a kind of backward jump where the player is suppose to turn 180 degrees in the jump.


OK, so the following works except the player will not turn into the new direction. Anyone see what I am doing wrong?


SplineTranslateToRef() is suppose to turn the actor automatically to match the ref they are moving to unless set to do otherwise, but I do not see any turning at all.




aadpCellMarkRef.MoveTo(PlayerRef, -140 * Math.Sin(PlayerRef.GetAngleZ()), -140 * Math.Cos(PlayerRef.GetAngleZ()), 140)


float zOffset = playerref.GetHeadingAngle(aadpCellMarkRef)


aadpCellMarkRef.SetAngle(aadpCellMarkRef.GetAngleX(), aadpCellMarkRef.GetAngleY(), aadpCellMarkRef.GetAngleZ() + zOffset)


PlayerRef.SplineTranslateToRef(aadpCellMarkRef, 10.0, 500.0)
User avatar
CArlos BArrera
 
Posts: 3470
Joined: Wed Nov 21, 2007 3:26 am

Post » Wed Sep 14, 2016 10:05 am

oh well nevermind. I decided to just turn the player myself (instead of the markerref) with set angle. This works for my needs.

User avatar
Petr Jordy Zugar
 
Posts: 3497
Joined: Tue Jul 03, 2007 10:10 pm

Post » Wed Sep 14, 2016 8:04 am

opps

User avatar
Nauty
 
Posts: 3410
Joined: Wed Jan 24, 2007 6:58 pm


Return to V - Skyrim