Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 642 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: purrfect ai lite-c [Re: the_clown] #268649
05/30/09 13:30
05/30/09 13:30
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
no, i have that demo, what i mean was... perfect A is setup to use ONE target model and ONE character...

the target model is globally defined so that means if i wanted to add another AI, they would both go to the same target, by making the target local, i get errorss because the NODES also uses the globally defined target pointer...

i wanted to have an idea of the changed i would have to make to perfect AI so i could use more AI with their OWN individual targets...

Re: purrfect ai lite-c [Re: darkinferno] #268976
06/01/09 06:34
06/01/09 06:34
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
Set a particular skill or a flag for one of the teams. Let's say that the red team has its flag1 set to on, while the blue team doesn't have it set. Then, make them all scan around; if a model belongs to the red team and detects an entity with its flag1 set to on, it shouldn't attack it (it's from the same red team); otherwise, if its flag1 isn't on, it is from the blue team so it should be attacked. That's how any team-based AI code works.

Re: purrfect ai lite-c [Re: George] #271382
06/12/09 19:29
06/12/09 19:29
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
true, that should work but all the ai go to one global pointer, i cant make it local because even the nodes need to use that pointer so i cant give each ai their own targets unless i ofcourse create 8 AI and say 8 target models

Re: purrfect ai lite-c [Re: darkinferno] #271433
06/13/09 04:37
06/13/09 04:37
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
The enemies can have their own targets; simply make them scan around, detecting the status of that flag for all the entities that are near them.

Page 3 of 3 1 2 3

Moderated by  George 

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