Home   Help Search Login Register  

Author Topic: distance?  (Read 451 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
distance?
« on: 10 Mar 2003, 07:24:18 »
OK. So IÂ'm working on my second official script(behold black oppers, this one is for you! ;D). Anyway, so I have the distance command ready in my script. But how do I get it activated? I want it to be activated when anybody moves in distance 5 or less to it. How do I get it activated by anyone? Please help.

Thanks in advance. :-*
« Last Edit: 10 Mar 2003, 07:24:55 by The real Armstrong »

Dark Nova

  • Guest
Re:distance?
« Reply #1 on: 10 Mar 2003, 07:33:32 »
if u want it in a script

#mainloop

~2

?(pl01 distance pl02) < 6 : goto "active"

goto "mainloop"

#active

<put your comand here>

goto "mainloop"


if in a trigger condistion just put

?(pl01 distance pl02) < 6

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:distance?
« Reply #2 on: 10 Mar 2003, 18:31:05 »
thx.

*TOPIC SOLVED AND LOCKED*