Jump to content
Sign in to follow this  
Sylensis

Police light texture animating

Recommended Posts

Hey guys,

I was wondering how to script the lightbar to animate the lights like in the beginning of this video:

There are 2 ways of doing so:

1. placing some lightsources and tweak them so they light up the environment

2. animating the lightbar textures (like the navigation lights on the hummingbird)

http://i.imgur.com/GJu4NVK.jpg (171 kB)

So my question now is:

How do I animate (flashing) the textures as seen on the screenshot and the video with the 2nd method?

Thanks a bunch!

Share this post


Link to post
Share on other sites

Okay, I discovered a way how to enable the light on the Offroad with this code:

_truck= _this select 0;

_truck animate ["HidePolice", 0];
_truck addAction ["<t color=""#001eff"">" + "Strobes On" ,{(_this select 0) animate ["BeaconsStart",1]},[],50,false,true,"","_target animationPhase 'BeaconsStart' < 0.5 && Alive(_target) && driver _target == _this"];
_truck addAction ["<t color=""#001eff"">" + "Strobes Off" ,{(_this select 0) animate ["BeaconsStart",0]},[],51,false,true,"","_target animationPhase 'BeaconsStart' > 0.5 && Alive(_target) && driver _target == _this"];

Thanks to cobra4v320 for posting the code here!

So, how do I edit this animation now? Where is it located? I didn't find anything, neither in the offroad's config nor in the animation PBO's.

Does anybody know where the flashingscript is located?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×