Donutfiend84 Posted July 16, 2012 Share Posted July 16, 2012 I'm setting up a mod, that will allow the player to lock onto an enemy. I've got most of the basics, but actually rotating the player is proving difficult. Specifically, here is the issue: The TranslateTo functions don't apply rotations to actors (no idea why), the using the SetActorValue function on the player's rotation doesn't seem to do anything, and the setAngle causes the actor to bounce up and down. In addition, the setAngle doesn't update reliably, even when called like this: Actor player = Game.getPlayer() while true player.SetAngle( player.GetAngleX(), player.GetAngleY(), player.GetAngleZ() +1 ) EndWhile I've got the rest of the mod mostly blocked out, at least in concept, but I'm considering giving up the mod, since the fundamental function of the mod is manually changing the players look, (or at least facing direction) and it doesn't seem to be possible. Disabling the player look controls, and calling setAngle works, but the character jittering (I'm guessing as it adjusts to the new position) makes this method not viable. If there is some way to stop the player from jittering each time the function is called, this might work, but so far no luck figuring out how to do that. Is there anything else anyone can think of to try? Maybe a custom animation of the player rotating 360 that I could step through dynamically? I'm just out of ideas to try. Any thoughts? Or is it a lost cause? Link to comment Share on other sites More sharing options...
Recommended Posts