Wednesday 20 July 2011

Make someone always look at you and follow you

I have created a simple flowgraph which makes an AI object (e.g: human) always look at and follow the player.


Hints:
1. The Time:Delay function creates a loop that makes sure the AI object always look at and go to the player (check status in every 0.01 second);
2. By changing the variable "B" in the Vec3:AddVec3 function you can decide the distance between the AI object and the player;
3. Please make sure to "Generate all navigation" (under AI tab) to make it work!

To make non-AI object always face player, please refer to this tutorial:
http://www.crymod.com/wiki/index.php/Entity_Always_Facing_Player

No comments:

Post a Comment