| View previous topic :: View next topic |
| Author |
Message |
jay_pee_em Grub Bug


Joined: 03 Jul 2008 Posts: 4 Location: Los Angeles, CA
|
Posted: Tue Sep 16, 2008 8:12 pm Post subject: waypoints |
|
|
I would post to the new forum but:
phpBB : Critical Error
Could not connect to the database
So I thought I'd just post here for now.
When you add values to chraigotoadd[], chraigotox[], and chraigotoy[], is the ai character going to automatically go to these waypoints? If so, where is the code that actually makes the ai character follow these points? If not, how does the waypoint system work? _________________ http://www.teamroflcopter.com/ |
|
| Back to top |
|
 |
penguinflyer5234 Penguin King

Joined: 01 Feb 2008 Age: 16 Posts: 1684 Location: Somewhere
|
Posted: Tue Sep 16, 2008 8:29 pm Post subject: |
|
|
You can't use AddWaypoint from the Scripting language? _________________ Donna Noble has left the library. Donna Noble has been saved.
|
|
| Back to top |
|
 |
jay_pee_em Grub Bug


Joined: 03 Jul 2008 Posts: 4 Location: Los Angeles, CA
|
Posted: Tue Sep 16, 2008 8:36 pm Post subject: |
|
|
I can use addwaypoint, but what that scripting function does is it adds values to the three arrays that i talked about. I want to know where in the code the ai actually follows these waypoints. _________________ http://www.teamroflcopter.com/ |
|
| Back to top |
|
 |
penguinflyer5234 Penguin King

Joined: 01 Feb 2008 Age: 16 Posts: 1684 Location: Somewhere
|
Posted: Tue Sep 16, 2008 8:47 pm Post subject: |
|
|
Line 3585 of script.c (2.6.5b)?
In the function let_character_think(character)?
It seems to convert the waypoint into a latch... _________________ Donna Noble has left the library. Donna Noble has been saved.
|
|
| Back to top |
|
 |
bgbirdsey Developer

Joined: 25 Sep 2007 Posts: 873 Location: Minnesota
|
Posted: Tue Sep 16, 2008 10:57 pm Post subject: |
|
|
Everything is done under the function let_character_think().
The function set_alerts() determines whether the next waypoint has been reached and updates the waypoint list.
In let_character_think(), under the heading "// Set latches", an AIs latch is set to make it move toward the next waypoint. |
|
| Back to top |
|
 |
|