Home   Help Search Login Register  

Author Topic: Proximity  (Read 811 times)

0 Members and 1 Guest are viewing this topic.

307

  • Guest
Proximity
« on: 08 Dec 2002, 03:02:21 »
Anyone know how to check if "player1" is within a certain distance of "comp1"?
i need to know how to make a var true if the player is within XX units of the comp

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Proximity
« Reply #1 on: 08 Dec 2002, 03:22:51 »
yes i know










ohh u wanna know how 2 do it  ::)

put da next condition

player1 distance comp1 =< num

da number is da max distance da condition wil b true @

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Kaliyuga

  • Guest
Re:Proximity
« Reply #2 on: 08 Dec 2002, 03:25:37 »
 Well....  there is a distance command....

the only way I ever use it is in a trigger like so:


condition: playerone distance comp1 < 2

activation: whatever

so.. I'm assuming that you could make your activation line be where you make your variable true ;) once the condition is met

BTW  the 2 is = 2 metres ;)

EDIT*** I guess I have to type a little faster... LOL ;D *****
« Last Edit: 08 Dec 2002, 03:27:51 by Kaliyuga »

307

  • Guest
Re:Proximity
« Reply #3 on: 08 Dec 2002, 03:32:24 »
alright problem solved thx