Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / [AI] making waypoints with Memblock, need more detail in constructing

Author
Message
xninzx
14
Years of Service
User Offline
Joined: 11th May 2010
Location:
Posted: 16th Jul 2010 16:10
as quote from AI command index

=================================================================
AI MAKE MEMBLOCK FROM WAYPOINTS

This command will create a memblock containing the waypoints from the specified container. If the memblock already exists it will first be deleted.

The structure of the memblock is as follows:
Number of waypoints as DWORD (4 bytes)
Number of edges as DWORD (4 bytes)

Then for each waypoint:
X# as FLOAT (4 bytes)
Z# as FLOAT (4 bytes)
Cost# as FLOAT (4 bytes)

Then for each edge:
First Waypoint Index as DWORD (4 bytes)
Second Waypoint Index as DWORD (4 bytes)
Edge Cost# as FLOAT (4 bytes)

===============================================================

I just have no idea how to write these, like where should I put this in sequence or something? how can I let the programme know which cost I set for each edge?

I need some example of these code.

Thanks! >w<
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 16th Jul 2010 17:22
look at the help file for this

AI MAKE WAYPOINTS FROM MEMBLOCK

adds more info to the other command.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-11-24 13:06:25
Your offset time is: 2024-11-24 13:06:25