Home   Help Search Login Register  

Author Topic: add a EH to every unit in a list  (Read 422 times)

0 Members and 3 Guests are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
add a EH to every unit in a list
« on: 13 Jul 2004, 17:40:54 »
Simple question :

How can I add a EH to every unit in a list?

I tried :
Code: [Select]
"[_x] addeventhandler ["fired",{_this exec "script.sqs"}]" foreach Loonslist

But it doesn't work.

« Last Edit: 13 Jul 2004, 17:41:22 by Blanco »
Search or search or search before you ask.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:add a EH to every unit in a list
« Reply #1 on: 13 Jul 2004, 17:46:27 »
"_x addeventhandler [""fired"",{_this exec ""script.sqs""}]" foreach Loonslist
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Blanco

  • Former Staff
  • ****
Re:add a EH to every unit in a list
« Reply #2 on: 13 Jul 2004, 21:57:28 »
thx alot!
Search or search or search before you ask.