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 / AI Set Entity Hit does't work

Author
Message
SAAB Driver
18
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 23rd Mar 2009 19:56
Does anyone know how to use the dark AI command AI Set Entity Hit?
Doing like this is giving me the error message "Ai entity 26" does not exist when bullet hit entity 26 for the first time.



Hello!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 23rd Mar 2009 20:15
first question should it not be like this to make it work.



taken out the 'then' bit.

Dark Physics makes any hot drink go cold.
SAAB Driver
18
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 23rd Mar 2009 21:31
using "Then" or not doesnt make any diffrent. unfortunately

Hello!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 23rd Mar 2009 21:56
check that you are going in to the if statment with Print "I am in here".


its away of checking that its going in to do something, if you don't see it then the condition was not met.

plus it might be quicker this way only need to check the one that hit, instead of all of them.




see if it works.

Dark Physics makes any hot drink go cold.
SAAB Driver
18
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 23rd Mar 2009 22:29
thanks for fast reply. i will try that out tomorrow.

Hello!
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 15th Apr 2009 02:31 Edited at: 15th Apr 2009 02:32
Check you have setup object 26 with Dark AI using AI ADD... commands
If it says that 26 doesn't exist then one would have thought that you haven't yet added it to the AI system try replacing:
AI Set Entity Hit enehit, 0, 0
with
if ai entity exist(i)=1 then AI Set Entity Hit i, X#, Z#
and see if it still crashes. It should sort the problem

I want robotic legs.

Login to post a reply

Server time is: 2024-04-23 18:58:08
Your offset time is: 2024-04-23 18:58:08