If you use x0_i0_position, you could do something like this.
#include "x0_i0_position"
void main()
{
object oGong = GetObjectByTag("Gong1");
object oGongBanger = GetObjectByTag("FirstSpawn");
float fDir = GetFacing(oGong) - 180.0;
location lTarget = GenerateNewLocation(oGong, DISTANCE_MEDIUM, fDir, fDir);
MoveToNewLocation(lTarget, oGongBanger);
}
Note that my code may need to be tweaked a bit. I just copy/pasta'd from one of my scripts that does something a bit different.
Modifié par wyldhunt1, 18 décembre 2011 - 10:06 .