Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: {_x animate [animationname, 1]}foreach units group this not working on vehicle.  (Read 1485 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 »