Home   Help Search Login Register  

Author Topic: {_x animate [animationname, 1]}foreach units group this not working on vehicle.  (Read 1029 times)

0 Members and 1 Guest are viewing this topic.

Offline izaktj

  • Members
  • *
OK, I downloaded a police vehicle with sirens and light bar. The animation works for a single vehicle if I use
Code: [Select]
this animate ["ani_siren", 1];
However, if I select the teamleader and write:
Code: [Select]
{_x animate ["ani_siren", 1]} foreach units group thisIt doesn't work, I don't get an error message though, so I think it's caused because the unit itself refers to the driver not the vehicle. I suppose the is other word for it to work. Thanks for the help.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Almost there I think:

Code: [Select]
{(vehicle _x) animate ["ani_siren", 1]} foreach units group this
Untested.

Offline izaktj

  • Members
  • *
Works like a charm! Thanks!
« Last Edit: 15 Dec 2008, 14:46:34 by bedges »