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 / Dark A.I. Problem/Help

Author
Message
CSGames94
16
Years of Service
User Offline
Joined: 27th Dec 2007
Location:
Posted: 16th Nov 2008 21:25 Edited at: 16th Nov 2008 21:27
I do not understand how you use this command "AI GET ENTITY ACTION$".
I am trying to use this command with this code to play certain animations on the object "ROBOT".



But I get an error saying:

Types 'TEMP1' and 'Stopped' are incompatible at line 78.

I don't have a clue on what that means and how to fix it.
But I would really help if someone knows how to fix this.

Thanks
pdq
17
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 17th Nov 2008 00:34
You need to add quotes since AI Get Action returns a string.

for ex: AI GET ENTITY ACTION$(ROBOT)= "Strafing Right"
CSGames94
16
Years of Service
User Offline
Joined: 27th Dec 2007
Location:
Posted: 17th Nov 2008 01:31
THANKS ALOT


But do you know how to stop a FPS Creator Model from facing backwards?
Even If I use YRotate Object or AI set entity Y Angle, it still faces backwards.
pdq
17
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 17th Nov 2008 21:35
You could try importing it into modeling app and rotate the model 180 degrees and then export it back.

Is the model a direct "X" ascii file? You can translate the root frame using notepad as an editor.
code master
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 20th Nov 2008 06:25
Try:



And PDQ, that's an interesting idea... Any more info as to how it's done?

bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 20th Nov 2008 16:50
Quote: "And PDQ, that's an interesting idea... Any more info as to how it's done?"


Agree, i still suggest the way code master mentioned.


http://bergice.blogspot.com/ << Please enter my blog and click ads
Demos,Examples,Tutorials,Portfolio
pdq
17
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 24th Nov 2008 21:40 Edited at: 24th Nov 2008 21:42
Quote: "
And PDQ, that's an interesting idea... Any more info as to how it's done?
"


Open the direct.X ascii file in notepad or wordpad, and look for the scene's root transformation matrix, which looks something like this:




The first 3x3 matrix is the rotation, while the last row is transformation.

If you change each 1.000 to -1.000 you are effectively rotating
the scene 180 degrees.

I always like to correct the model file first, before I use DB code
to correct it.

Hope that helps.

Login to post a reply

Server time is: 2024-05-22 11:50:24
Your offset time is: 2024-05-22 11:50:24