trepleen Posted September 11, 2014 Posted September 11, 2014 This code makes the follower face her back to the player. ;katreena faces away from the playerfloat zoffset = katreenadarkmoore.getheadingangle(game.getplayer())katreenadarkmoore.setangle(katreenadarkmoore.getanglex(), katreenadarkmoore.getangley(), katreenadarkmoore.getanglez() + (zoffset - 180)) The problem is that the follower performs the turn instantly, so it seems unnatural. Does anyone know how to convert the above code to use translateto instead of setangle? Translateto should make the follower turn her back towards the player naturally, instead of instantly.
b3lisario Posted September 11, 2014 Posted September 11, 2014 a.TranslateTo(a.GetPositionX(), a.GetPositionY(), a.GetPositionZ(), a.GetAngleX(), a.GetAngleY(), Game.GetPlayer().GetAngleZ() + 180.0, 10.0, 0.0)
trepleen Posted September 11, 2014 Author Posted September 11, 2014 a.TranslateTo(a.GetPositionX(), a.GetPositionY(), a.GetPositionZ(), a.GetAngleX(), a.GetAngleY(), Game.GetPlayer().GetAngleZ() + 180.0, 10.0, 0.0) Okay so it's not just me then, translateto doesn't seem to like tight spaces. I appreciate this btw.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.