Home   Help Search Login Register  

Author Topic: Flare support script gives errors  (Read 2003 times)

0 Members and 1 Guest are viewing this topic.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Flare support script gives errors
« Reply #15 on: 21 Jan 2006, 02:48:27 »
you can actually do this in a foreach i found out.
Code: [Select]
_mindis = 999999
_closest = objnull
"?_x distance player < _mindis:_mindis = _x distance player;_closest = _x" foreach _aleaders

not sure why the other thing didn't work unless _aleaders was undefined....

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Flare support script gives errors
« Reply #16 on: 21 Jan 2006, 04:36:07 »
Code: [Select]
"#:?_x distance player < _mindis:_mindis = _x distance player;_closest = _x" foreach _aleaders
error, invalid number in expression

note position of #:
« Last Edit: 21 Jan 2006, 04:37:56 by penguinman »