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
squirrel 890
19
Years of Service
User Offline
Joined: 18th Jan 2005
Location: aaaaaaaaaaaaaaaaaaaaa i remeber i forgot
Posted: 3rd Feb 2005 08:07
how do i get the distance fomr me to the bad guy

becuse then he ganna shoot me
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Feb 2005 01:01
Type 'distance' into the forum search box and you will find it's been discussed many times before.

Boo!
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 4th Feb 2005 02:03
here is how:

distance# = sqrt( (px#-bx#)^2 + (py#-by#)^2 + (pz#-bz#)^2 + )

where px# = player x position etc.
and bx# = bad guy x position etc.

Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 4th Feb 2005 08:44
Or look up 'intersect object' if you want to go the non-maths route.


Login to post a reply

Server time is: 2024-09-23 10:19:10
Your offset time is: 2024-09-23 10:19:10