OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: izaktj on 15 Dec 2008, 13:52:22
-
OK, I downloaded a police vehicle with sirens and light bar. The animation works for a single vehicle if I use
this animate ["ani_siren", 1];
However, if I select the teamleader and write:
{_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.
-
Almost there I think:
{(vehicle _x) animate ["ani_siren", 1]} foreach units group this
Untested.
-
Works like a charm! Thanks!