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 AI AISetEntityHit function Help????

Author
Message
Chiblue
15
Years of Service
User Offline
Joined: 6th Nov 2009
Location: NE PA, USA
Posted: 9th Mar 2010 16:28
I am trying to use AISetEntityHit to notify AI objects that they have been hit...

MY question is the parameters include Direction X and Direction Z.. I am confused on what these represent... if I have a player at say 0,0 and the AI object is at say 50,50... what would the direction in the function be... 0,0? 50,50, or something else...
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Mar 2010 19:34 Edited at: 22nd Mar 2010 19:34
I think it works on vectors. So if your entity is stood at 0,0 and is hit by a player at 50,50 then you would give it -50,-50, because that is the direction the bullet was traveling in when it hit the enemy...

Here's my code:


Login to post a reply

Server time is: 2024-11-24 16:08:08
Your offset time is: 2024-11-24 16:08:08