Home   Help Search Login Register  

Author Topic: distance code  (Read 617 times)

0 Members and 1 Guest are viewing this topic.

Offline oyman

  • Members
  • *
  • king of pings
distance code
« on: 21 Jul 2005, 05:33:09 »
I remember this one code where you could put in the condition of the trigger
where if a unit was a X number of meters away you could do stuff

it was something like

heli > distance = 45

anyone remember it :-\

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:distance code
« Reply #1 on: 21 Jul 2005, 05:57:53 »
perhaps you mean
heli distance this >= 45

or something similar

or perhaps you meant the pythagorean theorem (for 2d distance)