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.

Author
Message
The Real 87
21
Years of Service
User Offline
Joined: 3rd Mar 2004
Location: somewhere between 86 and 88
Posted: 1st Dec 2005 07:05 Edited at: 1st Dec 2005 07:06
I am working on my very fist AI. I thought I would give it a try on my own. So I wanted to start simple, lets say if the object hits an object then tun it and hae it keep moving. Sounded easy enough.

I added a dog in a town I make and tried my code. It works fie the first fer times, then the dog walks into one of the cubes and turns into it and walks right through it.

Any ideas on how I can make this better, and please keep it simple I don't understand AI scripting yet.



It moves at a negative speed because the model is backwards.

The Real 87
21
Years of Service
User Offline
Joined: 3rd Mar 2004
Location: somewhere between 86 and 88
Posted: 1st Dec 2005 07:20
I changed the script to make it more random, but I still get the same problem, he walks right through some objects.



The Real 87
21
Years of Service
User Offline
Joined: 3rd Mar 2004
Location: somewhere between 86 and 88
Posted: 1st Dec 2005 07:24 Edited at: 1st Dec 2005 07:35
wait figured it out. Wrong command to detect collision. oops.



Any ideas to make them look more natural??

Chilled Programmer 420
19
Years of Service
User Offline
Joined: 24th Nov 2005
Location: NOT SAYING!, i dont wanna get kidnapped!
Posted: 1st Dec 2005 10:12
next time answer som,eone elses post besides ur own
lol

Your signature is not appropriate for these forums
The Real 87
21
Years of Service
User Offline
Joined: 3rd Mar 2004
Location: somewhere between 86 and 88
Posted: 1st Dec 2005 20:11
lol. I didn;t mean to I just was lloking at it and figured out why it wasn;t working. Which was funny because I was working on it for about 10 minutes before I posted then right after I posted i noticed the mistake.

But how can I make it look more natural?

Your signature has been erased by a mod because the combined height of your 2 banners is way larger than 120..... remember, 600x120 is the limit.....
RiiDii
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 1st Dec 2005 20:32 Edited at: 1st Dec 2005 20:35
Peter H
21
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 1st Dec 2005 20:46
Quote: "It moves at a negative speed because the model is backwards."

you can fix that by simply rotating the model 180 degrees then using the "fix object pivot" command

like so..

(using the object id of 10000 like in your snippet)

"We make the worst games in the universe..."
The Real 87
21
Years of Service
User Offline
Joined: 3rd Mar 2004
Location: somewhere between 86 and 88
Posted: 1st Dec 2005 21:08
I made a second dog, that way I could see what happened when they ran into each other, but what I got wasn;t what I was looknig for. The first dog ran into the wall, and just shoock the whole time.

here's my code


Login to post a reply

Server time is: 2025-06-05 19:09:51
Your offset time is: 2025-06-05 19:09:51