You could use two scripts, one to do the random spawn in position, then in the OnSpawn script of the spawned in creature, make them face the target & possibly get the current vector / position..
Or you could create a custom function, which would then need to be delayed in order to "find" the spawned in creature after it has spawned, then make it do actions, apply effects, or to get the position of the creature...
You may need to do two custom functions, the 3rd custom function would run from the 2nd function to do actions, after the creature is "Found" & "Located", to apply affects or do actions etc...
That help?
Modifié par Genisys, 25 juillet 2010 - 07:52 .