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
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd May 2008 12:49
Need some tips on how to make a dead vehicle wake to life.

I am using the dark physics vehicles.
Now i need my vehicle to have ai, so he will dodge from me when i try to hit him, and also crash into me, so it will be more exciting


Dont delete my sig mods, it is 600X120...
Slash!
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd May 2008 16:48 Edited at: 23rd May 2008 17:59
Ok, to make this simple i have decided to only make the ai follow the player, or another object.

I used this:



But it doesnt work.

Got any techniques to find out if another object is to the left or right of another object?

----------------------------------------------------------

Changed it a little, but still doesnt work :S




Dont delete my sig mods, it is 600X120...
Slash!
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 24th May 2008 13:27
No one?

I just need to find if an object is to the left or right of another object, and its angle. :/


Dont delete my sig mods, it is 600X120...
Slash!
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 24th May 2008 18:21


That is the never version, but still it wont work :S


Dont delete my sig mods, it is 600X120...
Slash!
pdq
18
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 27th May 2008 02:10
Is your AI working? In other words are you getting back the text messages such as "RIGHT", "LEFT"?

I happen to use DarkAI along with DarkPhysics.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 27th May 2008 13:26
Yes i do, but its kind of weird and still the car wont turn right altough i get the RIGHT text.
This happens in all directions.


Dont delete my sig mods, it is 600X120...
Slash!
pdq
18
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 27th May 2008 21:51
I have not yet worked with Vehicles in Dark Physics; however, I did look at the documentation.

Are you suppose to add the "phy set vehicle steering value"? It looks like it is used in conjunction with "phy set vehicle steering angle"

Also, did you try executing the code below, without any logic, just to test to make sure the vehicle steers?

bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 27th May 2008 22:26
Thanks, i found out a weird thing...

He acts like a retard when i dont collide with him, but when i hit him, he changes to becoming a soccer champ!


Dont delete my sig mods, it is 600X120...
Slash!

Login to post a reply

Server time is: 2024-11-24 22:41:19
Your offset time is: 2024-11-24 22:41:19