Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Simple Pathfinding #242403
12/22/08 22:04
12/22/08 22:04
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline OP
Serious User
Blade280891  Offline OP
Serious User

Joined: Jan 2008
Posts: 1,580
Hey,
How would i go about writing a simple pathfinding script, the entity's will be walking in a straight line and turning when i say.

Could i use another entity as a way-point which will direct the AI.

Their will be no need for object detection i don't think, as all paths will be constructed manually.

I just need the logic at the moment.
Thanks,
Blade


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Re: Simple Pathfinding [Re: Blade280891] #242447
12/23/08 07:52
12/23/08 07:52
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline
Senior Member
kasimir  Offline
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
i have been working on my own A* pathfinding-editor:
Screenshot

i used models as waypoints in the editor. When exporting these only the Positions has been saved in a Vector-Array.

if you sorting them into the array you can call there position trought the array!
Just set a special flag and call ent_next and if there flag is set,than save them into the array!

f.e.:
VECTOR node[100];
first waypoint = node[0] (.x, .y, .z)
next waypoint = node[1] (.x, .y, .z)

hope that will help you?!

(sry for my bad english)

Last edited by kasimir; 12/23/08 07:58.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1