I have a slight dillemma which has actually held up the release of a mod I'm working on for 7 months (because I got frustrated and didn't work on it for 6 months ). Here's the problem:
This is for the iWac mod (you can get more info at Ultipla's website... http://www.jedilegacy.net/ultipla/). What I basically need is to have a bunch of moronic little creatures, Ewoks or Jawas, who will wander aimlessly around levels, but only through particular areas. I don't want the Ewoks, for example, to wander off their treetop platforms.
I have 2 basic ideas for how to pull this off. I've tried both unsuccessfully.
1. Set up a series of waypoints. When the AI sees one of these, it will walk directly towards it. When it reaches the waypoint it will turn and align itself in the direction the waypoint is facing, which would presumably lead to the next waypoint. This would get them through trickier areas. The waypoints would be ghosts- the problem was that I could never get them to consistantly see and head toward the ghosts, and couldn't get them to turn in the right direction once they got there.
The second idea is a bit simpler and probalby wouldn't work as well in practice, but I thought it might work: Simply flag all the sectors except the ones it could enter with some sector flag ( probably that "No AI" flag) and then at each pulse have the cog check the sector flags for the AI. It never even registered that it was in a sector with those flags, so that failed.
Anyone have any ideas or suggestions on how to make these work?
Thanx...
-Lik
This is for the iWac mod (you can get more info at Ultipla's website... http://www.jedilegacy.net/ultipla/). What I basically need is to have a bunch of moronic little creatures, Ewoks or Jawas, who will wander aimlessly around levels, but only through particular areas. I don't want the Ewoks, for example, to wander off their treetop platforms.
I have 2 basic ideas for how to pull this off. I've tried both unsuccessfully.
1. Set up a series of waypoints. When the AI sees one of these, it will walk directly towards it. When it reaches the waypoint it will turn and align itself in the direction the waypoint is facing, which would presumably lead to the next waypoint. This would get them through trickier areas. The waypoints would be ghosts- the problem was that I could never get them to consistantly see and head toward the ghosts, and couldn't get them to turn in the right direction once they got there.
The second idea is a bit simpler and probalby wouldn't work as well in practice, but I thought it might work: Simply flag all the sectors except the ones it could enter with some sector flag ( probably that "No AI" flag) and then at each pulse have the cog check the sector flags for the AI. It never even registered that it was in a sector with those flags, so that failed.
Anyone have any ideas or suggestions on how to make these work?
Thanx...
-Lik