Quote: "local distance = 100
local angy = g_Entity[e]['angley']
local posx = math.sin(angy) * distance
local posy = g_Entity[e]['y']
local posz = math.cos(angy) * distance
AIEntityGoToPosition(g_Entity[e]['obj'],posx,posy,posz)"
Thank you smallg, I'll go ahead and try this!
Quote: "You should probably analyze the file "ai_fantasyally_imp.lua""
Is that part of the fantasy pack DLC? I do not have it. I think smallg's solution will work though, so I don't think I'll need to do that anyways
Quote: "RotateToPlayerWithOffset(e,angleoffset)"
Oooo I feel like this one might come into handy with some stuff I plan to add later, thanks for pointing this out!
EDIT: smallg's code didn't seem to work, at first he does absolutely nothing, but after removing the "posy" (so it's an X and Z position only, as other calls to "GoToPosition" only use X and Z) he runs to a seemingly random part of the world, and it's always the same part of the world regardless of where he is before, and what direction he is facing.