Can anyone help me or point to the following:
-
How do I get an NPC to move from point A to B with multiple paths in between A and B. Just pick a path randomly between A and B.
-
The paths are a set of dots I placed in the world. And I have the (x,y) coords stored in a vars (local wp1X, wp1Y, wp2X, wp2Y, etc)
[code]
local wp1
local wp2
local wp3
local wp4
local wp5
local wp6
(Sorry I cannot upload images) Just picture 6 dots scattered on the map. I want the NPC to go to all 6 dots, but at random.
3. If my player char near the NPC then the npc starts tp follow player until player gets out of NPC range.
I imagine I would need som sort of a timer function to get the npc to loop through the cycle. I just need a basic frame work. Nopthin fancy, just do what I mention above.
Thank you! [import]uid: 53149 topic_id: 10141 reply_id: 310141[/import]